getter for the position added
if the sprite is colliding with another, cancel its move
sprites have now a hitbox for the collisions
update the hitbox with the sprite
test the collision on the hitbox and not on the sprite
tiles descriptions defined in consts.py
self.spriteset defined from the tilesgroup name
the hitbox is not necessary centered with the main sprite
hitbox created at the end of the player creation
key renamed
fill the hitbox in case of displaying it
loop done thrice simplified in a single loop...
Draw of the rect and of the hitbox splitted: the hitbox needs to be drawn before, for the collisions handling, then the
sprites must be sorted on their y axis, and displayed after