Fix horizontal
This commit is contained in:
parent
c416243695
commit
2fd493034a
|
@ -345,9 +345,9 @@ def __wave(world: World):
|
||||||
entity.set(
|
entity.set(
|
||||||
AWave(), Coroutine(__horizontal_projectile(world, False))
|
AWave(), Coroutine(__horizontal_projectile(world, False))
|
||||||
)
|
)
|
||||||
|
|
||||||
case _:
|
case _:
|
||||||
pass
|
pass
|
||||||
|
yield wait(0.5)
|
||||||
|
|
||||||
yield condition(
|
yield condition(
|
||||||
lambda world: all(Coroutine not in entity for entity in entities)
|
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 animation.wait()
|
||||||
yield wait(1)
|
yield wait(1)
|
||||||
entity.set(
|
entity.set(
|
||||||
smooth.Target(
|
smooth.Target(Vec2(1500 if left else -81, entity[Sprite].position.y))
|
||||||
Vec2(1500 if left else render.WIDTH + 60, entity[Sprite].position.y)
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
for entity in world.query(HorizontalProjectiles, Sprite):
|
for entity in world.query(HorizontalProjectiles, Sprite):
|
||||||
|
|
Loading…
Reference in a new issue