From 2edefe46a55a87ad8d1729a9a47cd5ed00ff0c1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl?= Date: Fri, 3 Nov 2023 00:09:35 +0100 Subject: [PATCH] fix erreurs --- src/scenes/basic_game.py | 6 +----- src/scenes/menu.py | 4 ++-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/scenes/basic_game.py b/src/scenes/basic_game.py index ef6f34a..2d3a502 100644 --- a/src/scenes/basic_game.py +++ b/src/scenes/basic_game.py @@ -13,7 +13,6 @@ from plugins import render from plugins import writing from plugins.assets import Assets from plugins.hover import HoveredTexture -from plugins.inputs import Pressed from plugins.render import Sprite from plugins.text import Text from plugins.writing import Writing @@ -70,7 +69,6 @@ class PlayAgain: def __initialize_world(world: World): world.set(Number(random.randint(0, 99))) world.set(IsRunning()) - print(world[Number]) world.new_entity().set(Sprite(world[Assets].get_texture("background"))) world.new_entity().set( @@ -162,8 +160,6 @@ def __update(world: World): else: lying = False - print(lying) - # Si le jeu est fini if IsRunning not in world: # On relance la scene/jeu @@ -238,7 +234,7 @@ def __update(world: World): __SCENE = ( Scene( [__initialize_world], - [__detect_keys], + [], [], ) + writing.PLUGIN diff --git a/src/scenes/menu.py b/src/scenes/menu.py index 9f73df1..91a1532 100644 --- a/src/scenes/menu.py +++ b/src/scenes/menu.py @@ -3,7 +3,7 @@ La scène du menu principal du jeu. Dans cette scène nous pouvons choisir le mode de jeu. """ -from scenes import basic_game +import basic_game from engine import CurrentScene, Scene from engine.ecs import Entity, World from engine.math import Vec2 @@ -34,7 +34,7 @@ def __create_button(world: World, assets: Assets, i: int, name: str): ) -def __on_click_butons(world: World, entity: Entity, name: str): +def __on_click_butons(world: World, _entity: Entity, name: str): """ Fonction qui s'execute quand on clique sur un bouton. """