PyroFlareX / Zymon

Pokemon clone. Inspired by OpMon. Wanted to try it myself to see a different way of doing things.
MIT License
3 stars 0 forks source link

Collision Detection #9

Open PyroFlareX opened 5 years ago

PyroFlareX commented 5 years ago

Self-explanatory. Needs to be done in the map file as another layer. Loaded as clear boxes or tilemap (preferably this for performance <-), and can be checked using AABB or similar.

PyroFlareX commented 5 years ago

SFML has 2d box collision built in, so I am using that. Therefore, collision detection in the form of sf::FloatRect's need to be added per collideable tile (e.g. trees). Clamping border collision is already added, but should be tweaked.