# Real Gravity Rocket Game

**URL:** <https://forum.makecode.com/t/real-gravity-rocket-game/44848>\
**Category:** Show & Tell\
**Tags:** game, graphics-and-math\
**Created:** [July 9, 2026, 3:00am UTC](https://forum.makecode.com/t/real-gravity-rocket-game/44848 "2026-07-09T03:00:12Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/fitz/32/34742_2.png) [@Fitz](https://forum.makecode.com/u/Fitz)\
**Post date:** [July 9, 2026, 3:00am UTC](https://forum.makecode.com/t/real-gravity-rocket-game/44848/1 "2026-07-09T03:00:12Z")

</div>

I made a game called MakeCode Space Program (Inspired by KSP), in which you fly around and do stuff. The first version was just basic controls, no bodies, but in the next update I added a sun with gravity! Working gravity!

If you wanna test it out for yourself here’s the link:

Alpha 1.0 (Empty Space) - [https://arcade.makecode.com/S18484-35403-98573-52605](https://arcade.makecode.com/S18484-35403-98573-52605)

Alpha 1.1 (Sun) - [https://arcade.makecode.com/S74373-25153-17861-03095](https://arcade.makecode.com/S74373-25153-17861-03095)

Although version alpha 1.1 has a bug where if you get to close to the star, known as Begoo, you get slingshot to the edge of the map. This would be fixed if i could figure out a way to add collision, but until then, I have no fix.

I plan to add a planet in the next update, I know how, I just don’t want to spend the time to do it.

Here’s the solar system I plan to add:

Star - Begoo

1st Planet - Mor - Mercury equivalent

2nd Planet - Utao - Earth equivalent

3rd Planet - Sput - Mars equivalent

4th Planet - Jamow - Ice Giant

5th Planet - Deego - Gas Giant - Yellow & Brown

6th Planet - Mep-101 - Gas Giant - Blue & Orange

I hope to add more cool things like sphere of influences, and maybe a mini map or a trajectory line.

If you have any idea how to add collision or any of the things mentioned, please let me know.

Thanks for your time.

-ILikeOuterSpace

---

<div class="post-metadata">

**Author:** ![Soleb244](https://avatars.discourse-cdn.com/v4/letter/s/aeb1de/32.png) [@Soleb244](https://forum.makecode.com/u/Soleb244)\
**Post date:** [July 9, 2026, 11:13pm UTC](https://forum.makecode.com/t/real-gravity-rocket-game/44848/2 "2026-07-09T23:13:43Z")

</div>

Looks like this could be a great game when its finished! You can check if something is coliding with a circular planet by checking

If ((rocketX - planetX) \*\* 2) + ((rocketY - planetY) \< planet radius **\*\* 2**

Would you like to collab?

---

<div class="post-metadata">

**Author:** ![YamJamTheGoober](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yamjamthegoober/32/29681_2.png) [@YamJamTheGoober](https://forum.makecode.com/u/YamJamTheGoober)\
**Post date:** [July 9, 2026, 11:13pm UTC](https://forum.makecode.com/t/real-gravity-rocket-game/44848/3 "2026-07-09T23:13:46Z")

</div>

You should add a way to slow down or go backwards, maybe a story or some kind of optional gameplay to do instead of just flying around.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/system/32/2_2.png) [@system](https://forum.makecode.com/u/system)\
**Post date:** [July 9, 2026, 11:14pm UTC](https://forum.makecode.com/t/real-gravity-rocket-game/44848/4 "2026-07-09T23:14:57Z")

</div>

Unlisted on July 9, 2026, 11:14pm UTC



---

<div class="post-metadata">

**Author:** ![Fitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/fitz/32/34742_2.png) [@Fitz](https://forum.makecode.com/u/Fitz)\
**Post date:** [July 9, 2026, 11:30pm UTC](https://forum.makecode.com/t/real-gravity-rocket-game/44848/5 "2026-07-09T23:30:27Z")

</div>

There is a way to turn slow down, it’s by turning around.

---

<div class="post-metadata">

**Author:** ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)\
**Post date:** [July 11, 2026, 2:21am UTC](https://forum.makecode.com/t/real-gravity-rocket-game/44848/6 "2026-07-11T02:21:43Z")

</div>

Listed on July 11, 2026, 2:21am UTC



---

<div class="post-metadata">

**Author:** ![Fitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/fitz/32/34742_2.png) [@Fitz](https://forum.makecode.com/u/Fitz)\
**Post date:** [July 11, 2026, 5:31pm UTC](https://forum.makecode.com/t/real-gravity-rocket-game/44848/7 "2026-07-11T17:31:47Z")

</div>

I made a game called MakeCode Space Program (Inspired by KSP), in which you fly around and do stuff. The first version was just basic controls, no bodies, but in the next update I added a sun with gravity! Working gravity!

If you wanna test it out for yourself here’s the link:

Alpha 1.0 (Empty Space) - [https://arcade.makecode.com/S18484-35403-98573-52605](https://arcade.makecode.com/S18484-35403-98573-52605)

Alpha 1.1 (Sun) - [https://arcade.makecode.com/S74373-25153-17861-03095](https://arcade.makecode.com/S74373-25153-17861-03095)

Alpha 1.2 (Sun + Mor) - [https://arcade.makecode.com/S88885-99897-21392-31760](https://arcade.makecode.com/S88885-99897-21392-31760)

Although version alpha 1.1 and 1.2 have a bug where if you get to close to the star, known as Begoo, you get slingshot to the edge of the map. This would be fixed if i could figure out a way to add collision, but until then, I have no fix.

I plan to add Utao in the next update, I know how, I just don’t want to spend the time to do it.

Here’s the solar system I plan to add:

Star - Begoo

1st Planet - Mor - Mercury equivalent

2nd Planet - Utao - Earth equivalent

3rd Planet - Sput - Mars equivalent

4th Planet - Jamow - Ice Giant

5th Planet - Deego - Gas Giant - Yellow & Brown

6th Planet - Mep-101 - Gas Giant - Blue & Orange

I hope to add more cool things like sphere of influences, and maybe a mini map or a trajectory line.

If you have any idea how to add collision or any of the things mentioned, please let me know.

Thanks for your time.

-ILikeOuterSpace

---

<div class="post-metadata">

**Author:** ![VoxelMaster64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/voxelmaster64/32/32075_2.png) [@VoxelMaster64](https://forum.makecode.com/u/VoxelMaster64)\
**Post date:** [July 12, 2026, 3:06am UTC](https://forum.makecode.com/t/real-gravity-rocket-game/44848/8 "2026-07-12T03:06:24Z")

</div>

I can try to make collisions

---

<div class="post-metadata">

**Author:** ![Fitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/fitz/32/34742_2.png) [@Fitz](https://forum.makecode.com/u/Fitz)\
**Post date:** [July 12, 2026, 8:20pm UTC](https://forum.makecode.com/t/real-gravity-rocket-game/44848/9 "2026-07-12T20:20:50Z")

</div>

That’d be great if you could! Also, I meant solid collisions, just to clear up any miscommunication.

---

<div class="post-metadata">

**Author:** ![Soleb244](https://avatars.discourse-cdn.com/v4/letter/s/aeb1de/32.png) [@Soleb244](https://forum.makecode.com/u/Soleb244)\
**Post date:** [July 12, 2026, 8:24pm UTC](https://forum.makecode.com/t/real-gravity-rocket-game/44848/10 "2026-07-12T20:24:20Z")

</div>

You can check if you are coliding like this:

dx = rocket x - planet x

dy = rocket y - planet x

If (dx × dx) + (dy × dy) \< radius × radius:

Destroy rocket

Because its a tiny rocket with no landing gear, i think you can just delete the rocket when it crashes on a planet

Also, spheres of influences are quite complicated, so it will be easier and probably better to just simulate gravity of all the celestial bodies at the same time
