An example project with pixel-calculated collision detection. Currently, the player is a rect for simplicity and to save cpu cycles. The white border around the player is the detection field, and the red pixels are detected collisions. It scans the map, grabs any tiles that are colliding, and reads the pixels from the sprite to determine transparent, passable sections.
[Please log in to post a comment]