Gameplay de la recherche dans les dossiers #44
After Width: | Height: | Size: 5.2 KiB |
|
@ -37,6 +37,7 @@ class State(Enum):
|
||||||
|
|
||||||
MOVING = 0
|
MOVING = 0
|
||||||
SEARCHING = 1
|
SEARCHING = 1
|
||||||
|
WAITING = 2
|
||||||
|
|
||||||
|
|
||||||
class SelectedDirectory:
|
class SelectedDirectory:
|
||||||
|
@ -172,7 +173,9 @@ def __attacks(world: World):
|
||||||
del entity[Order]
|
del entity[Order]
|
||||||
del entity[Centered]
|
del entity[Centered]
|
||||||
del entity[Texture]
|
del entity[Texture]
|
||||||
elif timer >= world[AttackSpeed] + 5 and world[State] == State.SEARCHING:
|
elif timer >= world[AttackSpeed] + 4 and world[State] == State.SEARCHING:
|
||||||
|
world[State] = State.WAITING
|
||||||
|
elif timer >= world[AttackSpeed] + 5 and world[State] == State.WAITING:
|
||||||
world[State] = State.MOVING
|
world[State] = State.MOVING
|
||||||
for _ in range(10):
|
for _ in range(10):
|
||||||
position = AttackPoint(
|
position = AttackPoint(
|
||||||
|
@ -195,7 +198,7 @@ def __move_directories(world: World):
|
||||||
Permet de déplacer les dossiers avec la souris.
|
Permet de déplacer les dossiers avec la souris.
|
||||||
"""
|
"""
|
||||||
# Si on n'est pas dans le bon state on annule
|
# Si on n'est pas dans le bon state on annule
|
||||||
if world[State] != State.MOVING:
|
if world[State] == State.SEARCHING:
|
||||||
return
|
return
|
||||||
|
|
||||||
# On met à jour la séléction
|
# On met à jour la séléction
|
||||||
|
|
Loading…
Reference in a new issue