Bye les jeuns

This commit is contained in:
Tipragot 2023-11-05 19:16:59 +01:00
parent 341aa987da
commit 74ce12a352

View file

@ -326,7 +326,8 @@ def __defeat(world: World):
""" """
TODO TODO
""" """
if world[Life] <= 0 and IsRunning in world: if IsRunning in world:
if world[Life] <= 0:
world.remove(IsRunning) world.remove(IsRunning)
for entity in world.query(Coroutine): for entity in world.query(Coroutine):
entity.destroy() entity.destroy()
@ -343,7 +344,12 @@ def __defeat(world: World):
), ),
Sound(world[Assets].get_sound("death")), Sound(world[Assets].get_sound("death")),
) )
world.new_entity().set(Sprite(world[Assets].get_texture("background"))) world.new_entity().set(
Sprite(world[Assets].error_texture, order=20),
Animation("animation_bg_mort", 24),
)
elif len(world[Held]) > 0 and len(world.query(Animation)) == 0:
world[CurrentScene] = __new_game_scene()
def __wave(world: World): def __wave(world: World):