ecs #58

Merged
raphael merged 70 commits from ecs into main 2023-11-03 15:29:36 +00:00
Showing only changes of commit b6e6e908d8 - Show all commits

View file

@ -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):