@timotheegoguely
I like to use a 2-dimensional array to store whether each tile is a wall or empty-space.
This is basically an array containing arrays. A list of lists. Which can be used as a grid.
collisionArray[x][y] = collisionValue
Now if you know the pixel-size of your tiles, you can make each tile correspond with a different array position.
Before allowing the player to walk in a direction, check the collision value of the tile in that direction.
@timotheegoguely This is really cool!
How are you rendering the background? Is it one big image, or do you have some way of combining sprites together?