Game impediments

I’m programming a little game at the moment; in this game you can “drive” with a little square in a little map.
The map is drawn with loaded images; black squares which don’t move.
Now my question:
How can I make this impediments impassable?
They are little squaers with a size of 100x100 pixels.
Do I have to write code for each one or does any trick exist to avoid this?
I mean, it would be a lot of code.
I hope that you can help me!

Perhaps something similar to this auto-generated tile map? :thinking:
http://Studio.ProcessingTogether.com/sp/pad/export/ro.9Ql2E8JBC54LJ

1 Like

See also this related discussion:

Hi, could you help me with zoom implementation in your example? I’ve got the problem that either tiles are zooming but moving towards some corner or after zooming player position is messed up and he collides in the wrong places.

This discussion is a month old. Maybe start a new one?