# Desmos Game Help

**URL:** <https://cl.desmos.com/t/desmos-game-help/8708>\
**Category:** Discussion\
**Tags:** desmos-calculator\
**Created:** [May 22, 2026, 4:51pm UTC](https://cl.desmos.com/t/desmos-game-help/8708 "2026-05-22T16:51:03Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![zer0](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/zer0/32/10533_2.png) [@zer0](https://cl.desmos.com/u/zer0)\
**Post date:** [May 22, 2026, 4:51pm UTC](https://cl.desmos.com/t/desmos-game-help/8708/1 "2026-05-22T16:51:03Z")

</div>

I am making this [desmos game](https://www.desmos.com/geometry/7uiqyqqp1f), and I don’t know how to script movement. It is a low graphics climbing game. I don’t know if I should change the mountain. I want the mountain to be infinite. I have a ok mountain, but I’m unsure if I need to change it. Could someone help?

---

<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:** [May 22, 2026, 5:06pm UTC](https://cl.desmos.com/t/desmos-game-help/8708/2 "2026-05-22T17:06:04Z")

</div>

Basically, store the player’s x and y as variables or a list:

```auto
x = 0
y = 0

```

Then define a polygon, with these values:

```auto
polygon((x, y), (x+1,y), (x+1,y+1), (x,y+1))

```

Then, create actions that can update `x` and `y`.

```auto
R_ight = x -> x + 1
L_eft = x -> x - 1
U_p = y -> y + 1
D_own = y -> y - 1

```

To create collision, you can use AABB collision (easiest), or you can make the mountain into an entity or something to check collision from a perspective of the player or mountain.

---

<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:** [May 22, 2026, 5:40pm UTC](https://cl.desmos.com/t/desmos-game-help/8708/3 "2026-05-22T17:40:06Z")

</div>

i was going to say this 😭

---

<div class="post-metadata">

**Author:** ![zer0](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/zer0/32/10533_2.png) [@zer0](https://cl.desmos.com/u/zer0)\
**Post date:** [May 22, 2026, 5:42pm UTC](https://cl.desmos.com/t/desmos-game-help/8708/4 "2026-05-22T17:42:07Z")

</div>

It keeps saying that it can’t update x AND it wont let me make the polygon.

---

<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:** [May 22, 2026, 5:51pm UTC](https://cl.desmos.com/t/desmos-game-help/8708/5 "2026-05-22T17:51:43Z")

</div>

Send the graph, also this is not a platformer but might teach a thing or two: [BrainFK in Desmos | Desmos](https://www.desmos.com/calculator/spb0xc8ffo)

---

<div class="post-metadata">

**Author:** ![zer0](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/zer0/32/10533_2.png) [@zer0](https://cl.desmos.com/u/zer0)\
**Post date:** [May 22, 2026, 6:02pm UTC](https://cl.desmos.com/t/desmos-game-help/8708/6 "2026-05-22T18:02:19Z")

</div>

Ok. I need some help figuring out how I can create collision (I probably will use AABB) and gravity. By the way, how does the motion work? and here is the [Geometry Graph](https://www.desmos.com/geometry/7uiqyqqp1f), in case you were wanting to see what I have. Also, how do I get the viewport to follow the player?

---

<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:** [May 23, 2026, 1:27pm UTC](https://cl.desmos.com/t/desmos-game-help/8708/7 "2026-05-23T13:27:24Z")

</div>

Well, since its a complex curve, you can’t jump the player by steps of 1. Also, gravity is just accelerating but downwards.  
Check if the player is anywhere between `+/- 0.1` of the mountain, and if they are, they are on the ground.

Basically, acceleration is like this:

```auto
x -> x + x * dt * friction
where dt is time

```

I think

---

<div class="post-metadata">

**Author:** ![zer0](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/zer0/32/10533_2.png) [@zer0](https://cl.desmos.com/u/zer0)\
**Post date:** [May 25, 2026, 5:35pm UTC](https://cl.desmos.com/t/desmos-game-help/8708/8 "2026-05-25T17:35:28Z")

</div>

What should I set time to? Also, should I change the mountain?

---

<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:** [May 26, 2026, 1:24am UTC](https://cl.desmos.com/t/desmos-game-help/8708/9 "2026-05-26T01:24:48Z")

</div>

Uh okay, it’s gotten kind of complex, so I decided to spend around 8 hours over 2 days to cook this up (unfinished, but is a pretty good tutorial: [Desmos | Desmos | Notebook](https://www.desmos.com/notebook/98yhsc24nf/view))  
It will explain everything, and will create a pretty cool platformer. Sorry, it’s not a mountain climber, because I really don’t know how I can create good collision for a curve. And it’s hard to create complex colliders in Desmos since all you got is `polygon`.

---

<div class="post-metadata">

**Author:** ![zer0](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/zer0/32/10533_2.png) [@zer0](https://cl.desmos.com/u/zer0)\
**Post date:** [May 26, 2026, 9:31pm UTC](https://cl.desmos.com/t/desmos-game-help/8708/10 "2026-05-26T21:31:05Z")

</div>

It doesnt have to be a curve, it just has to be infinite. I don’t care about the shape, as long as it doesn’t get TOO crazy.

---

<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:** [May 27, 2026, 12:28am UTC](https://cl.desmos.com/t/desmos-game-help/8708/11 "2026-05-27T00:28:06Z")

</div>

8 hours 😭 bro is determined

---

<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:** [May 27, 2026, 12:40am UTC](https://cl.desmos.com/t/desmos-game-help/8708/12 "2026-05-27T00:40:41Z")

</div>

Ya  
anyways @zer0 did you check the note book out?

---

<div class="post-metadata">

**Author:** ![zer0](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/zer0/32/10533_2.png) [@zer0](https://cl.desmos.com/u/zer0)\
**Post date:** [May 30, 2026, 12:34am UTC](https://cl.desmos.com/t/desmos-game-help/8708/13 "2026-05-30T00:34:57Z")

</div>

Checking it out right now!

---

<div class="post-metadata">

**Author:** ![Guzman\_Tierno](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/guzman_tierno/32/6149_2.png) [@Guzman\_Tierno](https://cl.desmos.com/u/Guzman_Tierno)\
**Post date:** [May 30, 2026, 8:52am UTC](https://cl.desmos.com/t/desmos-game-help/8708/14 "2026-05-30T08:52:27Z")

</div>

I did, you put lots of effort into it. Nice job!!!

---

<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:** [May 30, 2026, 2:41pm UTC](https://cl.desmos.com/t/desmos-game-help/8708/15 "2026-05-30T14:41:31Z")

</div>

Thanks man!!! Appreciate it, since I did spend a long time working with this

---

<div class="post-metadata">

**Author:** ![zer0](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/zer0/32/10533_2.png) [@zer0](https://cl.desmos.com/u/zer0)\
**Post date:** [August 26, 2026, 5:55pm UTC](https://cl.desmos.com/t/desmos-game-help/8708/16 "2026-08-26T17:55:39Z")

</div>

Hey, it’s been a while. Working on a new climbing game. Could you help add a d-pad or make it so keys move it? Link is [Game | Desmos](https://www.desmos.com/geometry/3oadjrfnpg)

---

<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:** [August 31, 2026, 12:38am UTC](https://cl.desmos.com/t/desmos-game-help/8708/17 "2026-08-31T00:38:10Z")

</div>

> **[Just Walk.](https://www.desmos.com/geometry/cicveeyyzn)**
>
> Explore geometry with our free Geometry Tool. Construct shapes, transform figures, measure angles and lengths, and visualize relationships.

Basically, go into the `Movement` variable and use `wasd`. Then, watch the green dot move. You can link this up with your movement functions in future

---

<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:** [September 1, 2026, 1:30pm UTC](https://cl.desmos.com/t/desmos-game-help/8708/18 "2026-09-01T13:30:17Z")

</div>

problem is, eventually desmos does not recognize this.

---

<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:** [September 1, 2026, 2:06pm UTC](https://cl.desmos.com/t/desmos-game-help/8708/19 "2026-09-01T14:06:35Z")

</div>

better approach: [Untitled Graph | Desmos](https://www.desmos.com/calculator/pscoib3u7z)

---

<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:** [September 4, 2026, 2:03am UTC](https://cl.desmos.com/t/desmos-game-help/8708/20 "2026-09-04T02:03:35Z")

</div>

Does not work on all browsers + operating systems.

i think my approach may be best

[Next page](https://cl.desmos.com/t/desmos-game-help/8708.md?page=2)
