Fix horizontal

This commit is contained in:
Tipragot 2023-11-05 17:19:53 +01:00
parent c416243695
commit 2fd493034a

View file

@ -345,9 +345,9 @@ def __wave(world: World):
entity.set(
AWave(), Coroutine(__horizontal_projectile(world, False))
)
case _:
pass
yield wait(0.5)
yield condition(
lambda world: all(Coroutine not in entity for entity in entities)
@ -615,9 +615,7 @@ def __horizontal_projectile(world: World, left: bool, number: int = 10):
yield animation.wait()
yield wait(1)
entity.set(
smooth.Target(
Vec2(1500 if left else render.WIDTH + 60, entity[Sprite].position.y)
)
smooth.Target(Vec2(1500 if left else -81, entity[Sprite].position.y))
)
for entity in world.query(HorizontalProjectiles, Sprite):