Gameplay de la recherche dans les dossiers #44

Merged
CoCo_Sol merged 32 commits from directory-search into main 2023-10-30 00:49:00 +00:00
2 changed files with 4 additions and 0 deletions
Showing only changes of commit a528a3f927 - Show all commits

BIN
assets/sounds/slide.wav Normal file

Binary file not shown.

View file

@ -15,6 +15,7 @@ from engine import (
Order,
Position,
Scene,
Sound,
Text,
TextSize,
Texture,
@ -335,6 +336,9 @@ def __move_directories(world: World):
selected_entity[DirectoryPosition].x += movement[0]
selected_entity[DirectoryPosition].y += movement[1]
# On joue un son
world.create_entity(Sound("slide.wav"))
# On retire le dossier selectionné
del world[SelectedDirectory]