Update exit rendering

main
En Yi 2024-08-24 00:23:17 +08:00
parent 16714159bb
commit 2fe3faf08f
2 changed files with 14 additions and 2 deletions

View File

@ -266,7 +266,13 @@ static void render_editor_game_scene(Scene_t* scene)
if (p_cspr->flip_x) offset.x *= -1;
pos = Vector2Add(pos, offset);
draw_sprite(spr.sprite, (data->coins.current < data->coins.total) ? 0 : 1, pos, 0.0f, p_cspr->flip_x);
draw_sprite(
spr.sprite,
2 * data->selected_solid_tilemap + (
(data->coins.current < data->coins.total) ? 0 : 1
),
pos, 0.0f, p_cspr->flip_x
);
}
}
else

View File

@ -195,7 +195,13 @@ static void render_regular_game_scene(Scene_t* scene)
if (p_cspr->flip_x) offset.x *= -1;
pos = Vector2Add(pos, offset);
draw_sprite(spr.sprite, (data->coins.current < data->coins.total) ? 0 : 1, pos, 0.0f, p_cspr->flip_x);
draw_sprite(
spr.sprite,
2 * data->selected_solid_tilemap + (
(data->coins.current < data->coins.total) ? 0 : 1
),
pos, 0.0f, p_cspr->flip_x
);
}
}
else