Dialogues (fais pas chier j'ai trop mal a la tête pour faire une bonne PR) #62

Merged
raphael merged 7 commits from dialogues into main 2023-11-05 12:02:51 +00:00
Showing only changes of commit 3374d3dd51 - Show all commits

View file

@ -45,7 +45,12 @@ def spawn_all_dialogs(
pygame.mixer.Sound(f"assets/dialogs/{name}/{i}.mp3"), pygame.mixer.Sound(f"assets/dialogs/{name}/{i}.mp3"),
callback=lambda world, entity: entity.destroy(), callback=lambda world, entity: entity.destroy(),
), ),
Text(text, position=Vec2(render.WIDTH / 2, height), origin=Vec2(0.5)), Text(
text,
position=Vec2(render.WIDTH / 2, height),
order=1000,
origin=Vec2(0.5),
),
) )
yield __spawn_all_condition(entity) yield __spawn_all_condition(entity)
yield wait(waiting_between) yield wait(waiting_between)
@ -73,7 +78,12 @@ def spawn_dialog(
pygame.mixer.Sound(f"assets/dialogs/{name}/{index}.mp3"), pygame.mixer.Sound(f"assets/dialogs/{name}/{index}.mp3"),
callback=lambda world, entity: __sound_end(world, entity, callback), callback=lambda world, entity: __sound_end(world, entity, callback),
), ),
Text(text, position=Vec2(render.WIDTH / 2, height), origin=Vec2(0.5)), Text(
text,
position=Vec2(render.WIDTH / 2, height),
order=1000,
origin=Vec2(0.5),
),
) )