# Dungeon Desmos Game

**URL:** https://cl.desmos.com/t/dungeon-desmos-game/8648
**Category:** Questions
**Created:** [March 27, 2026, 11:39pm UTC](https://cl.desmos.com/t/dungeon-desmos-game/8648 "2026-03-27T23:39:28Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Zynxitey](https://avatars.discourse-cdn.com/v4/letter/z/e480ec/32.png) [@Zynxitey](https://cl.desmos.com/u/Zynxitey)
#### Post date: [March 27, 2026, 11:39pm UTC](https://cl.desmos.com/t/dungeon-desmos-game/8648/1 "2026-03-27T23:39:28Z")

</div>

Im starting a dungeon-crawler type [game](https://www.desmos.com/calculator/2pamw78pzr), it’s not anywhere near done, and im wondering if there’s any way to make a collision type thing where my player cannot move past the walls. ( link is [Dungeon thingy map | Desmos](https://www.desmos.com/calculator/2pamw78pzr) )

---

<div class="post-metadata">

### Author: ![port](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/port/32/9839_2.png) [@port](https://cl.desmos.com/u/port)
#### Post date: [March 28, 2026, 12:25am UTC](https://cl.desmos.com/t/dungeon-desmos-game/8648/2 "2026-03-28T00:25:18Z")

</div>

yeah,

say a is player x

type a→(whatever the wall is){a\>=whatever the wall is} and that should work

---

<div class="post-metadata">

### Author: ![Zynxitey](https://avatars.discourse-cdn.com/v4/letter/z/e480ec/32.png) [@Zynxitey](https://cl.desmos.com/u/Zynxitey)
#### Post date: [March 28, 2026, 3:54am UTC](https://cl.desmos.com/t/dungeon-desmos-game/8648/3 "2026-03-28T03:54:53Z")

</div>

that would work if i had a single wall, ie i only had one wall at x=6 i would js do if {a\>=6:a→a+1}, but that doesnt work for how i have my walls, would i have to redo them? i have the x-axis walls all in one and the y-axis walls all in one.

---

<div class="post-metadata">

### Author: ![NTMDev](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/ntmdev/32/7141_2.png) [@NTMDev](https://cl.desmos.com/u/NTMDev)
#### Post date: [April 6, 2026, 12:50am UTC](https://cl.desmos.com/t/dungeon-desmos-game/8648/4 "2026-04-06T00:50:20Z")

</div>

sorry for being late, but try seeing if the x coordinate and y coordinate are the same as the x and y coords of the wall.

This is called AABB collision. Also, I have another game that uses collision, but more complex, since it involves physics: [Physics Platformer | Desmos](https://www.desmos.com/calculator/9voxb0avan)

@Zynxitey

---

<div class="post-metadata">

### Author: ![port](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/port/32/9839_2.png) [@port](https://cl.desmos.com/u/port)
#### Post date: [April 7, 2026, 1:39pm UTC](https://cl.desmos.com/t/dungeon-desmos-game/8648/5 "2026-04-07T13:39:11Z")

</div>

you can use multiple restrictions

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex031/uploads/desmos/original/2X/f/f5bd144684474e9a2f333002cde9840e52c5dbd3.png) [@system](https://cl.desmos.com/u/system)
#### Post date: [April 11, 2026, 6:34pm UTC](https://cl.desmos.com/t/dungeon-desmos-game/8648/6 "2026-04-11T18:34:03Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
