Is your 2d scrolling map isometric or top down?
A fairly simple way is to create a 2d array which is arranged in a grid storing a value at each element - either 0 or 1 for 'walkable/not walkable'. You can then load in the array from a file you may create in an editor you can simply put together. Each array index refers to a specific location on the map.
There are many ways of testing for collisions, this is just one example.
A fairly simple way is to create a 2d array which is arranged in a grid storing a value at each element - either 0 or 1 for 'walkable/not walkable'. You can then load in the array from a file you may create in an editor you can simply put together. Each array index refers to a specific location on the map.
There are many ways of testing for collisions, this is just one example.