fix bug de la vie negative
This commit is contained in:
parent
e5cc379bbf
commit
28037ae0ba
|
@ -150,8 +150,8 @@ def __check_hurt(world: World):
|
|||
"""
|
||||
TODO
|
||||
"""
|
||||
if world[Hurtable] == Hurtable.TRUE:
|
||||
for entity in world.query(Hurt, Sprite):
|
||||
if world[Hurtable] == Hurtable.TRUE:
|
||||
position = entity.get(Sprite).position
|
||||
width, height = entity.get(Sprite).texture.get_size()
|
||||
|
||||
|
|
Loading…
Reference in a new issue