mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2024-11-27 19:32:16 -05:00
Add settings
This commit is contained in:
parent
4facb99fda
commit
2d55bb7ad2
Binary file not shown.
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.5 KiB |
9
main.c
9
main.c
@ -3377,7 +3377,8 @@ void SFG_drawMap()
|
|||||||
uint16_t x;
|
uint16_t x;
|
||||||
uint16_t y = topLeftY;
|
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)
|
for (int16_t j = 0; j < maxJ; ++j)
|
||||||
{
|
{
|
||||||
@ -3400,9 +3401,11 @@ void SFG_drawMap()
|
|||||||
j != SFG_player.squarePosition[1])
|
j != SFG_player.squarePosition[1])
|
||||||
{
|
{
|
||||||
if (properties == SFG_TILE_PROPERTY_ELEVATOR)
|
if (properties == SFG_TILE_PROPERTY_ELEVATOR)
|
||||||
color = 214;
|
color = SFG_MAP_ELEVATOR_COLOR;
|
||||||
else if (properties == SFG_TILE_PROPERTY_SQUEEZER)
|
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
|
else
|
||||||
{
|
{
|
||||||
color = 0;
|
color = 0;
|
||||||
|
15
settings.h
15
settings.h
@ -206,6 +206,21 @@
|
|||||||
*/
|
*/
|
||||||
#define SFG_MONSTER_AIM_RANDOMNESS 4
|
#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.
|
Boolean value indicating whether current OS is malware.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user