# Presenting Space Invaders

**URL:** <https://forum.makecode.com/t/presenting-space-invaders/99>\
**Category:** Arcade\
**Created:** [March 22, 2019, 9:59am UTC](https://forum.makecode.com/t/presenting-space-invaders/99 "2019-03-22T09:59:22Z")\
**Posts on this page:** 7\
**Page:** 1

<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:** [March 22, 2019, 9:59am UTC](https://forum.makecode.com/t/presenting-space-invaders/99/1 "2019-03-22T09:59:22Z")

</div>

I’ve had a lot of fun with this one. It’s complete with all of your alien friends that you remember. OK, not all of them. Yes, you _can_ fit 55 aliens on the screen at once, but it’s very tight and they don’t have much room to move before they destroy your shields. So, I reduced the alien grid from 5x11 to 4x9. It’s still terrifying to see them approach your base in time with the music.

This one pushes the runtime to its limit with the number of sprites it has to keep track of. There will be some screen flicker, and the action will pause as each note plays. I still find the game very playable.

Feel free to remove the block that plays the music, and adjust the timing parameters to your liking to make the beginning of the game more challenging, if you like.

Most importantly, have fun! Happy Friday!

> **[Space Invaders](https://arcade.makecode.com/29605-97176-16823-77161)**
>
> Made with ❤️ in MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)\
**Post date:** [March 23, 2019, 4:55am UTC](https://forum.makecode.com/t/presenting-space-invaders/99/2 "2019-03-23T04:55:18Z")

</div>

We would like to show case your awesome games on the home screen. Would you be willing to try out our new submission process? The instructions are at [https://arcade.makecode.com/game-submission](https://arcade.makecode.com/game-submission) and hopefully they are good enough that we can take your game in.

---

<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:** [March 23, 2019, 10:40pm UTC](https://forum.makecode.com/t/presenting-space-invaders/99/3 "2019-03-23T22:40:25Z")

</div>

Thanks, @peli! I’ll be posting a clone of Spacewar in a couple of weeks that should be clear of any copyright concerns. I’ll try out the submission process on that one when I post it.

---

<div class="post-metadata">

**Author:** ![mmoskal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mmoskal/32/20_2.png) [@mmoskal](https://forum.makecode.com/u/mmoskal)\
**Post date:** [June 13, 2019, 11:14pm UTC](https://forum.makecode.com/t/presenting-space-invaders/99/4 "2019-06-13T23:14:39Z")

</div>

```
control.runInBackground(function () {
    music.playTone(heartbeatNotes[heartbeatNote], music.beat(BeatFraction.Quarter))
})

```

If you play the tones this way, they will not pause the game.

---

<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:** [June 14, 2019, 11:46am UTC](https://forum.makecode.com/t/presenting-space-invaders/99/5 "2019-06-14T11:46:06Z")

</div>

Thanks for that, @mmoskal! I need to go back to all of these Blocks games to get them to work on hardware anyway. I’ll keep that in mind when I build the next version of this game later this month.

---

<div class="post-metadata">

**Author:** ![jedgarpark](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jedgarpark/32/202_2.png) [@jedgarpark](https://forum.makecode.com/u/jedgarpark)\
**Post date:** [July 12, 2019, 9:07pm UTC](https://forum.makecode.com/t/presenting-space-invaders/99/6 "2019-07-12T21:07:46Z")

</div>

Wow, so many cool things you did making this @AlexK! Thanks for sharing it, I learned a lot. It’s my pick for Game of the Week: [https://blog.adafruit.com/2019/07/12/makecode-arcade-game-of-the-week-space-invaders-adafruit-johnedgarpark-adafruit-msmakecode/](https://blog.adafruit.com/2019/07/12/makecode-arcade-game-of-the-week-space-invaders-adafruit-johnedgarpark-adafruit-msmakecode/)

---

<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 13, 2019, 1:34am UTC](https://forum.makecode.com/t/presenting-space-invaders/99/7 "2019-07-13T01:34:11Z")

</div>

Quite an honor, John! Love your choice of focus within the code. Great walkthrough! I love that you’re drawing your audience to the forums, too. Always great to see new folks here!

I do need to get into these older games and update them to run on hardware, as well as to update them to use the Info Screens extension that you mentioned in your video. I’ll be coming back to them soon.

Thanks again, mate! Have a great weekend!
