Ajout d'un son de déplacement
This commit is contained in:
parent
602242c03e
commit
a528a3f927
BIN
assets/sounds/slide.wav
Normal file
BIN
assets/sounds/slide.wav
Normal file
Binary file not shown.
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in a new issue