hey.
I'm creating a 2d side scrolling game and have a question regarding the collision. I've been reading various articles and a few of them say that you should have a collision layer, which is exactly the same style as the tile layer but simply stores bits. I understand this logic, but what if my tiles are actually structs that contain a property called IsSolid
. Can I not simply check if the current tile isSolid
instead of having another layer? Or does having a collision layer provide further benefits that I've missed?
Thanks for any help