# Game impediments

**URL:** https://discourse.processing.org/t/game-impediments/896
**Category:** Coding Questions
**Created:** [June 12, 2018, 12:46pm UTC](https://discourse.processing.org/t/game-impediments/896 "2018-06-12T12:46:53Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Speedo](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@Speedo](https://discourse.processing.org/u/Speedo)
#### Post date: [June 12, 2018, 12:46pm UTC](https://discourse.processing.org/t/game-impediments/896/1 "2018-06-12T12:46:53Z")

</div>

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!

---

<div class="post-metadata">

### Author: ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)
#### Post date: [June 12, 2018, 5:24pm UTC](https://discourse.processing.org/t/game-impediments/896/2 "2018-06-12T17:24:29Z")

</div>

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

---

<div class="post-metadata">

### Author: ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)
#### Post date: [June 20, 2018, 12:05am UTC](https://discourse.processing.org/t/game-impediments/896/3 "2018-06-20T00:05:04Z")

</div>

See also this related discussion:

> [@How do you create a wall?](https://discourse.processing.org/t/how-do-you-create-a-wall/873/5):
>
> Hi people! I’m making a maze game, so I need walls that the cube can’t pass through. This is an example:

---

<div class="post-metadata">

### Author: ![TheJeff](https://avatars.discourse-cdn.com/v4/letter/t/9de053/32.png) [@TheJeff](https://discourse.processing.org/u/TheJeff)
#### Post date: [July 25, 2018, 7:30am UTC](https://discourse.processing.org/t/game-impediments/896/4 "2018-07-25T07:30:46Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![TfGuy44](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tfguy44/32/41_2.png) [@TfGuy44](https://discourse.processing.org/u/TfGuy44)
#### Post date: [July 25, 2018, 7:37am UTC](https://discourse.processing.org/t/game-impediments/896/5 "2018-07-25T07:37:52Z")

</div>

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