ecs #58
|
@ -37,7 +37,18 @@ def __on_click_butons(world: World, entity: Entity, name: str):
|
|||
"""
|
||||
Fonction qui s'execute quand on clique sur un bouton.
|
||||
"""
|
||||
entity[Sound] = Sound(world[Assets].get_sound("click"))
|
||||
world.new_entity().set(Sound(world[Assets].get_sound("click")))
|
||||
match name:
|
||||
case "classique":
|
||||
pass # TODO
|
||||
case "menteur":
|
||||
pass # TODO
|
||||
case "tricheur":
|
||||
pass # TODO
|
||||
case "histoire":
|
||||
pass # TODO
|
||||
case _:
|
||||
pass
|
||||
|
||||
|
||||
def __spawn_elements(world: World):
|
||||
|
|
Loading…
Reference in a new issue