Added another fix for collision on boxes
parent
674cef3831
commit
720d5b9b05
|
@ -68,7 +68,7 @@ class PhysicsElementsHandler:
|
||||||
if len(players) > 0:
|
if len(players) > 0:
|
||||||
player = players[0]
|
player = players[0]
|
||||||
for sprite in skip_sprites:
|
for sprite in skip_sprites:
|
||||||
if sprite.position_scale.position[1] - player.position_scale.position[1] < 100:
|
if sprite.position_scale.position[1] - player.position_scale.position[1] < 200:
|
||||||
skip_sprites.remove(sprite)
|
skip_sprites.remove(sprite)
|
||||||
|
|
||||||
sorted_dynamic_sprites = [sprite for sprite in sorted_dynamic_sprites if sprite not in skip_sprites]
|
sorted_dynamic_sprites = [sprite for sprite in sorted_dynamic_sprites if sprite not in skip_sprites]
|
||||||
|
|
Loading…
Reference in New Issue