4 buttons + edit reso.

This commit is contained in:
CoCo_Sol 2023-10-28 00:15:14 +02:00
parent c79f1ab345
commit a4bdd5c69a
2 changed files with 7 additions and 5 deletions

View file

@ -131,8 +131,8 @@ class Display:
Ressource qui represente la fenetre du jeu.
"""
WIDTH = 1080.0
HEIGHT = 810.0
WIDTH = 1440.0
HEIGHT = 1080.0
RATIO = WIDTH / HEIGHT
INVERT_RATIO = HEIGHT / WIDTH

View file

@ -50,14 +50,16 @@ def spawn_sprites(world: World) -> None:
),
)
for i in range(3):
for i in range(4):
if i == 0:
file_name = "button_classique"
elif i == 1:
file_name = "button_histoire"
else:
elif i == 2:
file_name = "button_tricheur"
new_button(Vec2(Display.WIDTH / 3 * i, 20), file_name)
else:
file_name = "button_menteur"
new_button(Vec2(Display.WIDTH / 4 * i, 20), file_name)
# On ajoutant la tache