|
@@ -169,25 +169,18 @@ void background_render(Canvas *canvas, GameManager *manager)
|
|
|
GameContext *game_context = game_manager_game_context_get(manager);
|
|
GameContext *game_context = game_manager_game_context_get(manager);
|
|
|
if (!game_context->is_menu_open)
|
|
if (!game_context->is_menu_open)
|
|
|
{
|
|
{
|
|
|
-
|
|
|
|
|
// get player position
|
|
// get player position
|
|
|
Vector posi = entity_pos_get(game_context->player);
|
|
Vector posi = entity_pos_get(game_context->player);
|
|
|
|
|
|
|
|
// draw username over player's head
|
|
// draw username over player's head
|
|
|
draw_username(canvas, posi, game_context->player_context->username);
|
|
draw_username(canvas, posi, game_context->player_context->username);
|
|
|
|
|
|
|
|
- // draw switch world icon
|
|
|
|
|
if (game_context->is_switching_level)
|
|
if (game_context->is_switching_level)
|
|
|
- {
|
|
|
|
|
- canvas_draw_icon(
|
|
|
|
|
- canvas,
|
|
|
|
|
- 0,
|
|
|
|
|
- 0,
|
|
|
|
|
- &I_icon_world_change_128x64px);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- // Draw user stats
|
|
|
|
|
- draw_user_stats(canvas, (Vector){0, 50}, manager);
|
|
|
|
|
|
|
+ // draw switch world icon
|
|
|
|
|
+ canvas_draw_icon(canvas, 0, 0, &I_icon_world_change_128x64px);
|
|
|
|
|
+ else
|
|
|
|
|
+ // Draw user stats
|
|
|
|
|
+ draw_user_stats(canvas, (Vector){0, 50}, manager);
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|