Open PyroFlareX opened 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.
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.