diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2021-03-03 00:46:27 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2021-03-03 00:46:27 +0300 |
commit | 23360084cd8cfc30441e1a4ffd399b29daa53401 (patch) | |
tree | 1455d98045a45cc2f1f4d0a0c43b1924f2c7051b | |
parent | 13ef68ec8beb98b687a6435033a5a90196c4198b (diff) | |
download | takethis-23360084cd8cfc30441e1a4ffd399b29daa53401.tar takethis-23360084cd8cfc30441e1a4ffd399b29daa53401.tar.xz takethis-23360084cd8cfc30441e1a4ffd399b29daa53401.zip |
Na Zdorovie!
-rw-r--r-- | data/map/0 | 44 | ||||
-rw-r--r-- | src/player.c | 14 |
2 files changed, 38 insertions, 20 deletions
@@ -1,24 +1,28 @@ -0 +3 .1.. -r0r4r4r4r4r4r4r4r4r4r4r4r4r4r4r4r4r4r4r1 -r7= . . . . . . = . . . . . . . . . . r5 -r7= . . . . . . . $1. . ^3. . . . . . r5 -r7. . ^1. . . . . . . . . . . . . . . r5 -r7. . . . . . . k . . . . . . . . . . r5 -r7. . . . . . . . . . . . . . . $ . . r5 -r7. . . . . . . . . . . . . . . . . . ra -r7. . . $1. . . . . . . . . . . . . . d2 -r7. . . . . . . . . . . . . . . . . . d3 -r7. . . . . . . . . . . . . . . . . . r8 -r7. . . . . . . . . . . . . . . . . . r5 -r7. . $ . . . . . . . . . . . . . . . r5 -r7. . . . . . . . . ^2. . . ^1. . . . r5 -r7. . . . ^ . . . . . . . . . . . . . r5 -r7. . . . . . . . . . . . . . . . . . r5 -r2r6r6r6r6r6r6r6r6r6r6r6r6r6r6r6r6r6r6r3 -+000+000=Save = F5 -+000+000=Fullscreen = F11 -+000+000=Load = F6 +y0y4y4y4y4y4y4y4y4y4y4y4y4y4y4y4y4y4y4y1 +y7.7=a.9.9.9.9.9.9.9.9.9.9.9.9.9.9. .7y5 +y7.7= .9.9.9.9.9.9.9.9.9.9.9.9.9.9. .7y5 +y7.7= .9.9.9.9.9.9.9.9.9.9.9.9.9.9. .7y5 +y2y6y6y6y6y6y6y6y6y6y6y6y6y6y6y6y6y6y6y3 +y0y4y4y4y4y4y4y4y4y4y4y4y1y0y4y4y4y4y4y1 +y7$ . $1. .a.a$1$ $1^2^0y5y7^1^2. . ^0ya +y7. $1. $ .a.a. . . . ^1y5y7^3.a.a.a. .6 +y7$ y8y6y9.a.a. . . . . y5y7. .a.a.a. .6 +y7^3y5^0y7.a.a. . . . ^3y5y7. .a.a.a. y8 +y2y6y3. y7.a.a. . . ^1^2y5y7. .a.a.a. y5 +. ^2. ^2y7.a.ay8y6y6y6y6y3y7. .a.a.a. y5 +y0y4y4y4yb.a.ayay4y4y4y4y4yb. .a.a.a. y5 +y7^0^2^1. .a.a$ . . . . . $ . .a.a.a^3y5 +y7^3^2. . .a.a. . . $1. . . . . . ^1^0y5 +y2y6y6y6y6y6y6y6y6y6y6y6y6y6y6y6y6y6y6y3 ++000+000= Na Zdorovie, Comrad! ++000+000= Save = F5 Load = F6 ++000+000= Fullscreen = F11 ++000+000 ++000+000 ++000+000 ++000+000 +000+000 +000+000 +000+000 diff --git a/src/player.c b/src/player.c index 02b2c08..2c7fe65 100644 --- a/src/player.c +++ b/src/player.c @@ -3,6 +3,7 @@ #include "globals.h" #include <math.h> + void tt_player_draw() { int i, j; @@ -83,7 +84,20 @@ void tt_player_draw() ttplayer.y - 32 + r * sin(f), 64, 96 }; SDL_RenderCopy(ttrdr, tttxr, &s, &d); } +/* + { + SDL_BlendMode mode; + SDL_GetRenderDrawBlendMode(ttrdr, &mode); + SDL_SetRenderDrawBlendMode(ttrdr, SDL_BLENDMODE_ADD); + SDL_Texture *txr = SDL_CreateTexture(ttrdr, SDL_PIXELFORMAT_RGBA8888, + SDL_TEXTUREACCESS_TARGET, 950, 540); + SDL_SetRenderTarget(ttrdr, txr); + SDL_SetRenderTarget(ttrdr, 0); + SDL_RenderCopy(ttrdr, txr, 0, 0); + SDL_SetRenderDrawBlendMode(ttrdr, mode); + } +*/ { SDL_Rect src = { 0, 16 * 11, 16, 16 }; SDL_Rect d = { 20 + TT_ROOM_W * 32 + 32, 12 + 32, 64, 64 }; |