ecs #58

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

View file

@ -185,7 +185,7 @@ def __update(world: World):
if int(entity[Text].text) == world[Number]: if int(entity[Text].text) == world[Number]:
for response in world.query(Text, Response): for response in world.query(Text, Response):
response[Text].text = "Gagné !" response[Text].text = "Gagné !"
entity[Text].text = "" entity[Text].text = f"Le nombre etait {world[Number]}"
# Le jeu est finit et on ne peux plus ecrire # Le jeu est finit et on ne peux plus ecrire
del world[IsRunning] del world[IsRunning]
del entity[Writing] del entity[Writing]