Tag Info

New answers tagged

0

I wouldn't even try to use pixel perfect collisions for this. Given the fact that you've got a limited and fixed amount of possible tiles as well as pretty simple rules ("allow player to leave the tile in some direction or not"), I'd just work with a bitmask/property for your tiles. For example, you could create an enum with the possible directions: enum ...



Top 50 recent answers are included