Hi, I'm reading the book Programming 2D Games, it's in C++ and DirectX.
I have an idea of how to render the scene with tiles, but how do you do collision detection? The only way I can think of would be to loop though all the tiles and check for a collision, but that would be slow. How can I check for only near by collisions?