diff --git a/assets/levelE.gif b/assets/levelE.gif index 98a5bb4..41c68ed 100644 Binary files a/assets/levelE.gif and b/assets/levelE.gif differ diff --git a/main.c b/main.c index e3df711..0e40fdf 100755 --- a/main.c +++ b/main.c @@ -3377,7 +3377,8 @@ void SFG_drawMap() uint16_t x; uint16_t y = topLeftY; - uint8_t playerColor = SFG_game.blink ? 93 : 111; + uint8_t playerColor = + SFG_game.blink ? SFG_MAP_PLAYER_COLOR1 : SFG_MAP_PLAYER_COLOR2; for (int16_t j = 0; j < maxJ; ++j) { @@ -3400,9 +3401,11 @@ void SFG_drawMap() j != SFG_player.squarePosition[1]) { if (properties == SFG_TILE_PROPERTY_ELEVATOR) - color = 214; + color = SFG_MAP_ELEVATOR_COLOR; else if (properties == SFG_TILE_PROPERTY_SQUEEZER) - color = 246; + color = SFG_MAP_SQUEEZER_COLOR; + else if (properties == SFG_TILE_PROPERTY_DOOR) + color = SFG_MAP_DOOR_COLOR; else { color = 0; diff --git a/settings.h b/settings.h index 56dbe59..94a8306 100644 --- a/settings.h +++ b/settings.h @@ -206,6 +206,21 @@ */ #define SFG_MONSTER_AIM_RANDOMNESS 4 +/// Color 1 index of player on map. +#define SFG_MAP_PLAYER_COLOR1 93 + +/// Color 2 index of player on map. +#define SFG_MAP_PLAYER_COLOR2 111 + +/// Color index of elevators on map. +#define SFG_MAP_ELEVATOR_COLOR 214 + +/// Color index of squeezers on map. +#define SFG_MAP_SQUEEZER_COLOR 246 + +/// Color index of door on map. +#define SFG_MAP_DOOR_COLOR 188 + /** Boolean value indicating whether current OS is malware. */