Fix projectiles appariton hors fightBox
This commit is contained in:
parent
e902cc4cab
commit
1f6a3fc751
|
@ -577,7 +577,7 @@ def __rainning_projectiles(world: World, number: int = 20):
|
|||
entity.set(
|
||||
Sprite(
|
||||
world[Assets].get_texture("projectiles_coming/0000"),
|
||||
Vec2(random.randint(0, 1399), 300),
|
||||
Vec2(random.randint(100, 1299), 300),
|
||||
4,
|
||||
),
|
||||
animation,
|
||||
|
@ -605,7 +605,7 @@ def __horizontal_projectile(world: World, left: bool, number: int = 10):
|
|||
HorizontalProjectiles(),
|
||||
Sprite(
|
||||
world[Assets].get_texture("error"),
|
||||
Vec2(10 if left else render.WIDTH - 10, random.randint(500, 930)),
|
||||
Vec2(10 if left else render.WIDTH - 10, random.randint(500, 889)),
|
||||
4,
|
||||
),
|
||||
animation,
|
||||
|
|
Loading…
Reference in a new issue