diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2021-03-03 12:05:52 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2021-03-03 12:05:52 +0300 |
commit | 1003fe3579e49b5b4e9f5f849f9967c005db3df8 (patch) | |
tree | bedb75e9068d2f794d99f76363da5ae01a8beffd | |
parent | d907f8c991221315b6ce615454bff895281870b6 (diff) | |
download | takethis-1003fe3579e49b5b4e9f5f849f9967c005db3df8.tar takethis-1003fe3579e49b5b4e9f5f849f9967c005db3df8.tar.xz takethis-1003fe3579e49b5b4e9f5f849f9967c005db3df8.zip |
God Mode for easy level design.
-rw-r--r-- | src/game.c | 4 | ||||
-rw-r--r-- | src/map.c | 2 | ||||
-rw-r--r-- | src/player.c | 6 |
3 files changed, 6 insertions, 6 deletions
@@ -1196,11 +1196,11 @@ void changeroom(int out) SDL_SetTextureColorMod(tttxr, 255, 0, 0); SDL_RenderCopy(ttrdr, tttxr, &src, &d); } - if (ttplayer.room == ttmap + 'G') { + if (ttplayer.variant) { SDL_Rect src = { 16 * 14, 16 * 11, 32, 32 }; SDL_Rect d = { ttplayer.x - 32, ttplayer.y - 21, 128, 128 }; - SDL_SetTextureColorMod(tttxr, 255, 255, 255); + SDL_SetTextureColorMod(tttxr, 255, 0, 0); SDL_RenderCopy(ttrdr, tttxr, &src, &d); } SDL_SetTextureColorMod(tttxr, 255, 255, 255); @@ -284,7 +284,7 @@ static void loadroom(tt_room *r, FILE *f) b->txrcol = id; b->anim = 4; b->rate = 100 + (rand() % 50 - 25); - b->collision_act = colact_gulag; + b->collision_act = /*colact_gulag*/ 0; b->isdoor = 0; } } diff --git a/src/player.c b/src/player.c index 02703ec..abfff35 100644 --- a/src/player.c +++ b/src/player.c @@ -161,13 +161,13 @@ void tt_player_draw() SDL_SetTextureColorMod(tttxr, 255, 0, 0); SDL_RenderCopy(ttrdr, tttxr, &src, &d); } - if (curmus == lenin || ttplayer.room == ttmap + 'G') { + if (ttplayer.variant) { SDL_Rect src = { 16 * 14, 16 * 11, 32, 32 }; SDL_Rect d = { ttplayer.x - 32, ttplayer.y - 32, 128, 128 }; - SDL_SetTextureColorMod(tttxr, 255, 255, 255); + SDL_SetTextureColorMod(tttxr, 255, 0, 0); SDL_RenderCopy(ttrdr, tttxr, &src, &d); - if (curmus == lenin) SDL_SetTextureAlphaMod(tttxr, 16); } + if (curmus == lenin) SDL_SetTextureAlphaMod(tttxr, 16); int j; for (i = 0; i != TT_ROOM_H; ++i) { for (j = 0; j != TT_ROOM_W; ++j) { |