Hey guys, like the title says, I’m having a tough time getting my collision detection to work properly. My game is a sidescrolling platformer and I’m wanting to use a tiled-based collision scheme, where each tile is either passable or impassable. I already know how to assign each tile a rectangle, but I’m not sure how to iterate over the tiles surrounding the player because my player’s bounding box is twice as wide and 4 times as high as one tile (16 x 16 vs. 32 x 64). My actual sprite’s dimensions are 64 x 64 (not that it matters).
Does anyone have any experience with this kind of a collision detection setup?