Remove drawing of moveable grid

scene_man
En Yi 2023-11-15 23:35:38 +08:00
parent a9939200b7
commit 85e731392a
1 changed files with 6 additions and 8 deletions

View File

@ -213,14 +213,12 @@ static void render_editor_game_scene(Scene_t* scene)
int y = tile_y * TILE_SIZE;
#if !defined(PLATFORM_WEB)
if (!tilemap.tiles[i].moveable)
{
// Draw water tile
Color water_colour = ColorAlpha(RED, 0.2);
DrawRectangle(x, y, TILE_SIZE, TILE_SIZE, water_colour);
}
#endif
//if (!tilemap.tiles[i].moveable)
//{
// // Draw water tile
// Color water_colour = ColorAlpha(RED, 0.2);
// DrawRectangle(x, y, TILE_SIZE, TILE_SIZE, water_colour);
//}
uint8_t tile_sprite_idx = tilemap.tiles[i].tile_type + tilemap.tiles[i].rotation;
if (data->tile_sprites[tile_sprite_idx] != NULL)