diff --git a/src/player.c b/src/player.c index f70e24d..60e8f28 100644 --- a/src/player.c +++ b/src/player.c @@ -128,9 +128,9 @@ void player_draw(Player player) { /* Draw colored rectangle depending on player state. */ u32 color = 0; if (player.stun) - color = C_RGB((230/4), (41/4), (55/4)); /* Red. */ + color = C_RGB(230/8, 41/8, 55/8); /* Red. */ else - color = C_RGB((0/4), (121/4), (241/4)); /* Blue. */ + color = C_RGB(0/8, 121/8, 241/8); /* Blue. */ const vec2_int_t x = player.pos.x + DRAW_OFFSET_X; const vec2_int_t y = player.pos.y + DRAW_OFFSET_Y; drect(x, y, x + PLAYER_WIDTH - 1, y + PLAYER_HEIGHT - 1, color); diff --git a/src/tiles.c b/src/tiles.c index 362aef2..edffbab 100644 --- a/src/tiles.c +++ b/src/tiles.c @@ -11,13 +11,13 @@ u32 tile_color(tile_t tile) { int color = 0; switch (tile) { - case AIR_TILE: color = C_RGB((0/4), (0/4), (0/4)); break; - case SOLID_TILE: color = C_RGB((10/4), (210/4), (180/4)); break; - case PAIN_TILE: color = C_RGB((210/4), (10/4), (180/4)); break; - case SPAWN_TILE: color = C_RGB((20/4), (220/4), (20/4)); break; - case EXIT_TILE: color = C_RGB((250/4), (220/4), (10/4)); break; - case KEY_TILE: color = C_RGB((210/4), (210/4), (210/4)); break; - case SEMI_SOLID_TILE: color = C_RGB((5/4), (105/4), (90/4)); break; + case AIR_TILE: color = C_RGB(0/8, 0/8, 0/8); break; + case SOLID_TILE: color = C_RGB(10/8, 210/8, 180/8); break; + case PAIN_TILE: color = C_RGB(210/8, 10/8, 180/8); break; + case SPAWN_TILE: color = C_RGB(20/8, 220/8, 20/8); break; + case EXIT_TILE: color = C_RGB(250/8, 220/8, 10/8); break; + case KEY_TILE: color = C_RGB(210/8, 210/8, 210/8); break; + case SEMI_SOLID_TILE: color = C_RGB(5/8, 105/8, 90/8); break; } return color; }