Change rendering for not 'moveable' tile

scene_man
En Yi 2023-06-26 20:19:38 +08:00
parent b5790ef00b
commit bb6da04e74
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}