assets update + hoverable component #23
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue