# Space Rocks 3D!

**URL:** https://forum.makecode.com/t/space-rocks-3d/6334
**Category:** Show & Tell
**Tags:** game, featured-game
**Created:** [February 24, 2021, 3:59pm UTC](https://forum.makecode.com/t/space-rocks-3d/6334 "2021-02-24T15:59:47Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![kwx](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kwx/32/1545_2.png) [@kwx](https://forum.makecode.com/u/kwx)
#### Post date: [February 24, 2021, 3:59pm UTC](https://forum.makecode.com/t/space-rocks-3d/6334/1 "2021-02-24T15:59:47Z")

</div>

> **[Space Rocks 3D](https://arcade.makecode.com/52892-89459-59488-19588)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

This is a followup to my earlier [3D graphics test](https://forum.makecode.com/t/3d-graphics-test/6285), now playable with added lasers and explosions.

Use the A button to shoot rocks, and try not to crash into them. The rocks are standing still in the first wave, but start moving in later waves. Your ship automatically flies forward.

There’s a 3D radar at the bottom of the screen that shows where the rocks are in relation to your ship.

Choose your preferred control scheme with the B button. Joystick up/down is the pitch (nose up/down) control, the other functions are selectable:

- Stick yaw: joystick left/right steers your ship left/right
- Stick roll: joystick left/right rolls your ship around its Z axis
- Tilt roll: same as stick yaw, adds tilt accelerometer for roll control
- Tilt roll/pitch: same as stick yaw, adds accelerometer pitch and roll controls

The last two are mainly intended for use on hardware with an accelerometer, for example the PyGamer. It’s a bit clunky to use them with the emulator.

Enjoy!

---

<div class="post-metadata">

### Author: ![Agent\_14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agent_14/32/17567_2.png) [@Agent\_14](https://forum.makecode.com/u/Agent_14)
#### Post date: [February 24, 2021, 4:15pm UTC](https://forum.makecode.com/t/space-rocks-3d/6334/2 "2021-02-24T16:15:24Z")

</div>

SO ADDICTING!!! Only that nothing happens if you crash into them…

---

<div class="post-metadata">

### Author: ![kwx](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kwx/32/1545_2.png) [@kwx](https://forum.makecode.com/u/kwx)
#### Post date: [February 24, 2021, 4:23pm UTC](https://forum.makecode.com/t/space-rocks-3d/6334/3 "2021-02-24T16:23:23Z")

</div>

You should lose a life and hear a sound effect when crashing into a rock, but you need to be very close for that to happen. We’re you having near misses, or is it not working right?

---

<div class="post-metadata">

### Author: ![Agent\_14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agent_14/32/17567_2.png) [@Agent\_14](https://forum.makecode.com/u/Agent_14)
#### Post date: [February 24, 2021, 4:24pm UTC](https://forum.makecode.com/t/space-rocks-3d/6334/4 "2021-02-24T16:24:15Z")

</div>

It was not working at all. I went right through it…

---

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [February 24, 2021, 5:08pm UTC](https://forum.makecode.com/t/space-rocks-3d/6334/5 "2021-02-24T17:08:56Z")

</div>

It worked for me, I lost a heart.

Great game BTW! Wish my brain was big enough to make something like this…

---

<div class="post-metadata">

### Author: ![kwx](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kwx/32/1545_2.png) [@kwx](https://forum.makecode.com/u/kwx)
#### Post date: [February 24, 2021, 5:26pm UTC](https://forum.makecode.com/t/space-rocks-3d/6334/6 "2021-02-24T17:26:09Z")

</div>

Was this on a higher wave with fast asteroids? It checks for collisions once per frame, but I think it’s possible for that to miss a collision if the ship and rock are moving towards each other fast enough, especially if the framerate is low which increases the step size. I have a step limiter, but that may not be enough.

I guess I need to dig up equations for 3D line-to-line distance to do this properly. That would also help to implement a proximity alert…

---

<div class="post-metadata">

### Author: ![ggiscool](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ggiscool/32/3431_2.png) [@ggiscool](https://forum.makecode.com/u/ggiscool)
#### Post date: [February 24, 2021, 5:26pm UTC](https://forum.makecode.com/t/space-rocks-3d/6334/7 "2021-02-24T17:26:12Z")

</div>

same… it worked for me

---

<div class="post-metadata">

### Author: ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)
#### Post date: [February 24, 2021, 5:51pm UTC](https://forum.makecode.com/t/space-rocks-3d/6334/8 "2021-02-24T17:51:03Z")

</div>

This is awesome! I was really hoping we would get a [starfox game](https://youtu.be/ZnmnpWKoUS0?t=194) at some point and this is most the way there.

---

<div class="post-metadata">

### Author: ![eanders](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/eanders/32/3134_2.png) [@eanders](https://forum.makecode.com/u/eanders)
#### Post date: [February 24, 2021, 6:39pm UTC](https://forum.makecode.com/t/space-rocks-3d/6334/9 "2021-02-24T18:39:07Z")

</div>

Wow! Perf is pretty good on meowbit too. Nice work.

---

<div class="post-metadata">

### Author: ![ggiscool](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ggiscool/32/3431_2.png) [@ggiscool](https://forum.makecode.com/u/ggiscool)
#### Post date: [February 24, 2021, 7:07pm UTC](https://forum.makecode.com/t/space-rocks-3d/6334/10 "2021-02-24T19:07:00Z")

</div>

Can you make the asteroids tie fighters plz?

---

<div class="post-metadata">

### Author: ![ggiscool](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ggiscool/32/3431_2.png) [@ggiscool](https://forum.makecode.com/u/ggiscool)
#### Post date: [February 24, 2021, 7:08pm UTC](https://forum.makecode.com/t/space-rocks-3d/6334/11 "2021-02-24T19:08:57Z")

</div>

also, I made a dashboard,

> **[Space Rocks 3D](https://arcade.makecode.com/61032-64183-15885-58833)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

### Author: ![Agent\_14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agent_14/32/17567_2.png) [@Agent\_14](https://forum.makecode.com/u/Agent_14)
#### Post date: [February 24, 2021, 7:44pm UTC](https://forum.makecode.com/t/space-rocks-3d/6334/12 "2021-02-24T19:44:16Z")

</div>

Apparently when you pass a level and hold a, it takes it up. This is level 612:

 ![SmartSelect_20210224-131711_Samsung Internet](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/2/2ad4f016a179a1c88cbbec2d4f8fe9879fcaacb1.jpeg)

---

<div class="post-metadata">

### Author: ![ggiscool](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ggiscool/32/3431_2.png) [@ggiscool](https://forum.makecode.com/u/ggiscool)
#### Post date: [February 24, 2021, 7:47pm UTC](https://forum.makecode.com/t/space-rocks-3d/6334/13 "2021-02-24T19:47:13Z")

</div>

I saw that

---

<div class="post-metadata">

### Author: ![kwx](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kwx/32/1545_2.png) [@kwx](https://forum.makecode.com/u/kwx)
#### Post date: [February 24, 2021, 7:53pm UTC](https://forum.makecode.com/t/space-rocks-3d/6334/14 "2021-02-24T19:53:04Z")

</div>

Oops, I thought I had fixed that glitch. I guess I may as well keep it as an easter egg for people who find the default progression not challenging enough 🙂

> [@ggiscool](#):
>
> Can you make the asteroids tie fighters plz?

That would actually take some more tweaks to the renderer since TIE fighters aren’t convex. It would internally need to split the ship into several parts and draw them in the correct order to ensure that you don’t get glitches such as the central ball being drawn in front of the side panels.

I would like to add moving enemies that shoot back at some point, but no promises.

---

<div class="post-metadata">

### Author: ![Primal\_Nexus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/primal_nexus/32/3540_2.png) [@Primal\_Nexus](https://forum.makecode.com/u/Primal_Nexus)
#### Post date: [February 24, 2021, 7:53pm UTC](https://forum.makecode.com/t/space-rocks-3d/6334/15 "2021-02-24T19:53:06Z")

</div>

Whoa…

---

<div class="post-metadata">

### Author: ![Primal\_Nexus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/primal_nexus/32/3540_2.png) [@Primal\_Nexus](https://forum.makecode.com/u/Primal_Nexus)
#### Post date: [February 24, 2021, 7:58pm UTC](https://forum.makecode.com/t/space-rocks-3d/6334/16 "2021-02-24T19:58:23Z")

</div>

This is actually one of the most brainiest games that I actually enjoy! SUPER addictive and as @richard said, there might be a nice Starfox remake!

Who should make the game??? (Pssssst, it should be me)

---

<div class="post-metadata">

### Author: ![ggiscool](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ggiscool/32/3431_2.png) [@ggiscool](https://forum.makecode.com/u/ggiscool)
#### Post date: [February 24, 2021, 9:51pm UTC](https://forum.makecode.com/t/space-rocks-3d/6334/17 "2021-02-24T21:51:59Z")

</div>

yes DO IT

---

<div class="post-metadata">

### Author: ![ggiscool](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ggiscool/32/3431_2.png) [@ggiscool](https://forum.makecode.com/u/ggiscool)
#### Post date: [February 24, 2021, 10:12pm UTC](https://forum.makecode.com/t/space-rocks-3d/6334/18 "2021-02-24T22:12:40Z")

</div>

> **[Space Rocks 3D](https://arcade.makecode.com/72277-87389-47791-07889)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

you can use this for star fox

---

<div class="post-metadata">

### Author: ![ggiscool](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ggiscool/32/3431_2.png) [@ggiscool](https://forum.makecode.com/u/ggiscool)
#### Post date: [February 24, 2021, 10:12pm UTC](https://forum.makecode.com/t/space-rocks-3d/6334/19 "2021-02-24T22:12:58Z")

</div>

wait, are you using my dashboard?!

---

<div class="post-metadata">

### Author: ![2ndClemens](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/2ndclemens/32/809_2.png) [@2ndClemens](https://forum.makecode.com/u/2ndClemens)
#### Post date: [February 24, 2021, 10:27pm UTC](https://forum.makecode.com/t/space-rocks-3d/6334/20 "2021-02-24T22:27:22Z")

</div>

Wow, this is great!  
Works well on the Meowbit till level 4 where it gets quite slow. Crashes at level 5.  
But still amazing that it works on Hardware at all 🙂

[Next page](https://forum.makecode.com/t/space-rocks-3d/6334.md?page=2)
