solarus-games / children-of-solarus

This repository was moved to GitLab: https://gitlab.com/solarus-games/children-of-solarus
http://www.solarus-games.org
Other
37 stars 8 forks source link

Redraw wooden shield for better collisions #81

Closed Diarandor closed 6 years ago

Diarandor commented 6 years ago

Draw almost-transparent pixels in some of the the transparent parts, for a better pixel-precise collision with enemies. There are problems sometimes for the up direction due to a missing pixel collision.

EDIT: in the end, we will use a shield_collision_mask sprite, which will be different and independent from the shield sprite, and will be set as not visible.

Diarandor commented 6 years ago

Also, add a function: "enemy:add/set_shield_pushing_condition(test_function)" to add more conditions necessary to push an enemy (like a "facing" condition of bounding boxes, etc)