diff --git a/assets/krita/classique_arrow.kra b/assets/krita/classique_arrow.kra new file mode 100644 index 0000000..9dd55a9 Binary files /dev/null and b/assets/krita/classique_arrow.kra differ diff --git a/assets/krita/classique_background.kra b/assets/krita/classique_background.kra new file mode 100644 index 0000000..80c9500 Binary files /dev/null and b/assets/krita/classique_background.kra differ diff --git a/assets/krita/classique_button.kra b/assets/krita/classique_button.kra new file mode 100644 index 0000000..9e5e80b Binary files /dev/null and b/assets/krita/classique_button.kra differ diff --git a/assets/textures/classique/arrow.png b/assets/textures/classique/arrow.png index 6cc4797..26ffa24 100644 Binary files a/assets/textures/classique/arrow.png and b/assets/textures/classique/arrow.png differ diff --git a/assets/textures/classique/arrow_hover.png b/assets/textures/classique/arrow_hover.png index 5cc7bae..7fa65a4 100644 Binary files a/assets/textures/classique/arrow_hover.png and b/assets/textures/classique/arrow_hover.png differ diff --git a/assets/textures/classique/background.png b/assets/textures/classique/background.png index e9e2551..1e2509e 100644 Binary files a/assets/textures/classique/background.png and b/assets/textures/classique/background.png differ diff --git a/assets/textures/classique/play_again.png b/assets/textures/classique/play_again.png index 2fdb6cb..1848bba 100644 Binary files a/assets/textures/classique/play_again.png and b/assets/textures/classique/play_again.png differ diff --git a/assets/textures/classique/play_again_hover.png b/assets/textures/classique/play_again_hover.png index 46c81a8..5ac69df 100644 Binary files a/assets/textures/classique/play_again_hover.png and b/assets/textures/classique/play_again_hover.png differ diff --git a/assets/textures/classique/valider.png b/assets/textures/classique/valider.png index dfbad0b..b3ae357 100644 Binary files a/assets/textures/classique/valider.png and b/assets/textures/classique/valider.png differ diff --git a/assets/textures/classique/valider_hover.png b/assets/textures/classique/valider_hover.png index 69388a6..9e3a40a 100644 Binary files a/assets/textures/classique/valider_hover.png and b/assets/textures/classique/valider_hover.png differ diff --git a/src/scenes/classique.py b/src/scenes/classique.py index 0c8368d..4765c59 100644 --- a/src/scenes/classique.py +++ b/src/scenes/classique.py @@ -21,6 +21,8 @@ from engine import ( World, ) +COLOR_TEXT = Color(66, 39, 148) + class RandomNumber(int): """ @@ -66,7 +68,7 @@ def __initialize_world(world: World): # Bouton valider/rejouer world.create_entity( - Position(Display.WIDTH / 2, 900), + Position(Display.WIDTH / 2, 875), Order(1), Centered(), Texture("classique/valider.png"), @@ -81,7 +83,7 @@ def __initialize_world(world: World): Centered(), typing.Typing("1234567890"), Text(""), - Color(61, 22, 58), + COLOR_TEXT, TextSize(150), ) @@ -92,24 +94,24 @@ def __initialize_world(world: World): Centered(), TextDialogue(), TextSize(150), - Color(61, 22, 58), + COLOR_TEXT, Text("Devine le nombre..."), ) # Text qui affiche le nombre d'essai world.create_entity( - Position(Display.WIDTH - 700, 100), + Position(Display.WIDTH / 2 - 100, 150), Order(4), TextSize(100), NombreEssaiText(), - Color(61, 22, 58), + COLOR_TEXT, Text("il reste : 7 essais"), ) # Bouton pour revenir au menu world.create_entity( Order(11), - Position(100, 100), + Position(150, 150), Texture("classique/arrow.png"), Clickable(lambda world, _: world[Game].change_scene("menu")), HoveredTexture("classique/arrow_hover.png"),