From 30318ab81765a304b424cf576f181d681a14409a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl?= Date: Sun, 7 Jan 2024 23:13:44 +0100 Subject: [PATCH] Scoreboard update --- src/scenes/menu.py | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/scenes/menu.py b/src/scenes/menu.py index 9bdc6d2..92a4149 100644 --- a/src/scenes/menu.py +++ b/src/scenes/menu.py @@ -91,6 +91,19 @@ def __spawn_elements(world: World): Clickable(__go_to_settings), ) + world.new_entity().set( + TextBundle( + "ScoreBoard", + 0, + 75, + position=Vec2( + render.WIDTH / 2, + 325, + ), + origin=Vec2(0.5), + ) + ) + def __go_to_settings(world: World, _e: Entity): world[CurrentScene] = settings.SETTINGS @@ -104,7 +117,7 @@ def __spawn_score(world: World): world.new_entity().set( TextBundle( f"{name}", - position=Vec2(render.WIDTH / 2 - 350, 325 + 50 * i), + position=Vec2(render.WIDTH / 2 - 300, 400 + 50 * i), origin=Vec2(0), order=1, ) @@ -113,7 +126,7 @@ def __spawn_score(world: World): world.new_entity().set( TextBundle( f"{score}", - position=Vec2(render.WIDTH / 2 + 350, 325 + 50 * i), + position=Vec2(render.WIDTH / 2 + 300, 400 + 50 * i), origin=Vec2(1, 0), order=1, ) -- 2.43.4