# Asteroids 1979

**URL:** <https://forum.makecode.com/t/asteroids-1979/7603>\
**Category:** Show & Tell\
**Tags:** game\
**Created:** [April 25, 2021, 7:48am UTC](https://forum.makecode.com/t/asteroids-1979/7603 "2021-04-25T07:48:28Z")\
**Posts on this page:** 8\
**Page:** 1

<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:** [April 25, 2021, 7:48am UTC](https://forum.makecode.com/t/asteroids-1979/7603/1 "2021-04-25T07:48:28Z")

</div>

Hi all! This was my attempt to make a somewhat-faithful reproduction of the original Asteroids game, or at least a start toward that goal. It’s unfinished, but is playable!

> **[asteroids-1979](https://eanders-ms.github.io/asteroids-1979/)**
>
> A MakeCode project

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/c/c29f78476741b1d4ed9f155f2f3a837efd06a437.png)

Even though the code is JavaScript, it is still very hackable. If you open it in the editor and look at `constants.ts` you’ll see a bunch of config settings you can change, like:

- Ship size, speed, color, friction
- Rock sizes and speeds, colors
- Number of initial lives
- Number of initial rocks
- And much more

Try messing with them! Even minor changes can make it feel like an entirely different game.

Some unfinished things:

- Sound effects
- Saucers
- New life at xxx points
- High score screen
- Authentic ship explosion (current one doesn’t match original)
- Player 2

---

<div class="post-metadata">

**Author:** ![frank\_schmidt](https://avatars.discourse-cdn.com/v4/letter/f/7993a0/32.png) [@frank\_schmidt](https://forum.makecode.com/u/frank_schmidt)\
**Post date:** [April 25, 2021, 4:47pm UTC](https://forum.makecode.com/t/asteroids-1979/7603/2 "2021-04-25T16:47:59Z")

</div>

This is great @eanders ! It downloads and plays on all three consoles that I have Meowbit, PyGamer and BrainPad. Noob question: “open it in editor and look at constants ts”. I don’t see that option on my machine. What am I missing? In editor I see one line of code in JS. If I switch to Python I get error messages. If I switch to blocks I see only one block. "explore’ gives me nothing. Just curious how to see your code ? Thx.  
PS… we can move sprites on one Meowbit with button press on another Meowbit using SD Wireless chip so would your Asteroids be a good candidate for experimenting with that and 2 player, like the old JACDAC system ? 1979 was a good year for me !

---

<div class="post-metadata">

**Author:** ![girlwhocode](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/girlwhocode/32/3754_2.png) [@girlwhocode](https://forum.makecode.com/u/girlwhocode)\
**Post date:** [April 25, 2021, 4:51pm UTC](https://forum.makecode.com/t/asteroids-1979/7603/3 "2021-04-25T16:51:42Z")

</div>

my high score is 3400! or it was something close to that i forgot

---

<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:** [April 25, 2021, 4:55pm UTC](https://forum.makecode.com/t/asteroids-1979/7603/4 "2021-04-25T16:55:13Z")

</div>

I knew someone would do this eventually.

---

<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:** [April 25, 2021, 5:19pm UTC](https://forum.makecode.com/t/asteroids-1979/7603/5 "2021-04-25T17:19:02Z")

</div>

Thanks @frank_schmidt! What happens when you click on “Explorer” underneath the simulator? It should expand to show a list of files, including constants.ts:

 ![explorer](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/6/619b435ad0ddce314b3cff1b9e2ef891aa07803e.gif)

Networked multiplayer in Asteroids would be very interesting! It would be a departure from the design of the classic game, but doesn’t mean it shouldn’t be attempted :). It would be straight forward to add multiplayer to the underlying (very small) game engine.

---

<div class="post-metadata">

**Author:** ![frank\_schmidt](https://avatars.discourse-cdn.com/v4/letter/f/7993a0/32.png) [@frank\_schmidt](https://forum.makecode.com/u/frank_schmidt)\
**Post date:** [April 25, 2021, 6:01pm UTC](https://forum.makecode.com/t/asteroids-1979/7603/6 "2021-04-25T18:01:14Z")

</div>

thanks @eanders , none of those tabs show up on my ‘normal’ screen, I have to scale it down to 80% in order for those to appear above “Download”… .the problem with multiplayer via Kittenbot SD Wireless, as I have said before on this forum, it breaks the simulator when the command blocks are added to the code; the extension does not mess with the simulator but the code does when added ; so I do the programming for game first and watch simulator and then add SD Wireless code before downloading to hardware. It would be nice if this could be fixed.

---

<div class="post-metadata">

**Author:** ![FlintAsher](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/flintasher/32/2745_2.png) [@FlintAsher](https://forum.makecode.com/u/FlintAsher)\
**Post date:** [April 26, 2021, 3:16pm UTC](https://forum.makecode.com/t/asteroids-1979/7603/7 "2021-04-26T15:16:17Z")

</div>

noice

---

<div class="post-metadata">

**Author:** ![jackal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jackal/32/19506_2.png) [@jackal](https://forum.makecode.com/u/jackal)\
**Post date:** [December 21, 2021, 6:15pm UTC](https://forum.makecode.com/t/asteroids-1979/7603/8 "2021-12-21T18:15:59Z")

</div>

mine is 6450
