Fix projectiles appariton hors fightBox

This commit is contained in:
Raphaël 2023-11-05 17:28:57 +01:00
parent e902cc4cab
commit 1f6a3fc751

View file

@ -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,