From bb6da04e744edc18b94eac32966f833f466ebad4 Mon Sep 17 00:00:00 2001 From: En Yi Date: Mon, 26 Jun 2023 20:19:38 +0800 Subject: [PATCH] Change rendering for not 'moveable' tile --- scenes/editor_scene.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scenes/editor_scene.c b/scenes/editor_scene.c index 83c6541..e358e94 100644 --- a/scenes/editor_scene.c +++ b/scenes/editor_scene.c @@ -98,10 +98,10 @@ static void level_scene_render_func(Scene_t* scene) Color water_colour = ColorAlpha(BLUE, 0.5); DrawRectangle(x, y, TILE_SIZE, TILE_SIZE, water_colour); } - if (tilemap.tiles[i].moveable) + if (!tilemap.tiles[i].moveable) { // Draw water tile - Color water_colour = ColorAlpha(GREEN, 0.2); + Color water_colour = ColorAlpha(RED, 0.2); DrawRectangle(x, y, TILE_SIZE, TILE_SIZE, water_colour); } }