# How do I add levels in a top-down spaceshooter game?

**URL:** <https://forum.makecode.com/t/how-do-i-add-levels-in-a-top-down-spaceshooter-game/3998>\
**Category:** Help\
**Created:** [October 20, 2020, 11:05pm UTC](https://forum.makecode.com/t/how-do-i-add-levels-in-a-top-down-spaceshooter-game/3998 "2020-10-20T23:05:34Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Satisfaction](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Satisfaction](https://forum.makecode.com/u/Satisfaction)\
**Post date:** [October 20, 2020, 11:05pm UTC](https://forum.makecode.com/t/how-do-i-add-levels-in-a-top-down-spaceshooter-game/3998/1 "2020-10-20T23:05:35Z")

</div>

I’ve got a project in stem and he instructed us to make a game with the following aspects:

- All visual elements - sprites, environments, etc are scratch-made (no gallery items) by you.
- Should be a completely original game (title, characters, elements) and not a copy or recreation of an existing game.
- Should have measurable objectives (keep score, level up, etc. )
- Should have at least 4 distinct (i.e. unique from each other) levels.
- Should have sound effects and an opening music sequence.

I am doing a top-down space invader (galga) type genre for this project and I have the basics down. I did a starting sequence animation, tracked the velocity and position of my enemyList and playerShip, even animated the tail of the playerShip and more. My question is how do I add unique levels to this game. It would seem simple to add levels in a platformer as you can set the player to teleport after reaching an endpoint of that certain level, though you can’t do that with galga. If you know the answer please tell me and I would appreciate your help if you tried, thank you all.

---

<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:** [October 20, 2020, 11:17pm UTC](https://forum.makecode.com/t/how-do-i-add-levels-in-a-top-down-spaceshooter-game/3998/2 "2020-10-20T23:17:09Z")

</div>

Welcome to the Forum!

A level could be “finished” when you reach a certain number of points. Each level could introduce new enemies.

Just an idea.

---

<div class="post-metadata">

**Author:** ![Dreadmask197](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dreadmask197/32/10494_2.png) [@Dreadmask197](https://forum.makecode.com/u/Dreadmask197)\
**Post date:** [October 20, 2020, 11:18pm UTC](https://forum.makecode.com/t/how-do-i-add-levels-in-a-top-down-spaceshooter-game/3998/3 "2020-10-20T23:18:40Z")

</div>

I was just gonna say that

---

<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:** [October 20, 2020, 11:19pm UTC](https://forum.makecode.com/t/how-do-i-add-levels-in-a-top-down-spaceshooter-game/3998/4 "2020-10-20T23:19:15Z")

</div>

> [@Satisfaction](#):
>
> Should be a completely original game (title, characters, elements) and not a copy or recreation of an existing game.

Although if it’s based on Galaga, then it wouldn’t be original. 😕

---

<div class="post-metadata">

**Author:** ![Satisfaction](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Satisfaction](https://forum.makecode.com/u/Satisfaction)\
**Post date:** [October 20, 2020, 11:23pm UTC](https://forum.makecode.com/t/how-do-i-add-levels-in-a-top-down-spaceshooter-game/3998/5 "2020-10-20T23:23:49Z")

</div>

Let me correct myself, it is going to be a **Action** type space game. My sprites aren’t going to be like Galga’s sprites. Like Vince states, “Action games are just that—games where the player is in control of and at the center of the action, which is mainly comprised of physical challenges players must overcome. Most early video games like _Donkey Kong_ and _Galaga_ fall into the action category.”

---

<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:** [October 20, 2020, 11:26pm UTC](https://forum.makecode.com/t/how-do-i-add-levels-in-a-top-down-spaceshooter-game/3998/6 "2020-10-20T23:26:04Z")

</div>

Ah, that makes more sense.

---

<div class="post-metadata">

**Author:** ![Dreadmask197](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dreadmask197/32/10494_2.png) [@Dreadmask197](https://forum.makecode.com/u/Dreadmask197)\
**Post date:** [October 20, 2020, 11:32pm UTC](https://forum.makecode.com/t/how-do-i-add-levels-in-a-top-down-spaceshooter-game/3998/7 "2020-10-20T23:32:25Z")

</div>

You want to make a game like Galaga but your own?

---

<div class="post-metadata">

**Author:** ![Satisfaction](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Satisfaction](https://forum.makecode.com/u/Satisfaction)\
**Post date:** [October 20, 2020, 11:35pm UTC](https://forum.makecode.com/t/how-do-i-add-levels-in-a-top-down-spaceshooter-game/3998/8 "2020-10-20T23:35:16Z")

</div>

Kind of, I am just making a space shooter game.

---

<div class="post-metadata">

**Author:** ![Dreadmask197](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dreadmask197/32/10494_2.png) [@Dreadmask197](https://forum.makecode.com/u/Dreadmask197)\
**Post date:** [October 20, 2020, 11:35pm UTC](https://forum.makecode.com/t/how-do-i-add-levels-in-a-top-down-spaceshooter-game/3998/9 "2020-10-20T23:35:44Z")

</div>

Ahhhh… thats what u meant. OK!!

---

<div class="post-metadata">

**Author:** ![Dreadmask197](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dreadmask197/32/10494_2.png) [@Dreadmask197](https://forum.makecode.com/u/Dreadmask197)\
**Post date:** [October 20, 2020, 11:37pm UTC](https://forum.makecode.com/t/how-do-i-add-levels-in-a-top-down-spaceshooter-game/3998/10 "2020-10-20T23:37:29Z")

</div>

Wanna do the Hard way or the easy way of making the game with waves/levels?

Easy: keep adding space thugs by each wave  
Hard: making boss battles and stuff that is going to be hard to do

---

<div class="post-metadata">

**Author:** ![Dreadmask197](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dreadmask197/32/10494_2.png) [@Dreadmask197](https://forum.makecode.com/u/Dreadmask197)\
**Post date:** [October 20, 2020, 11:37pm UTC](https://forum.makecode.com/t/how-do-i-add-levels-in-a-top-down-spaceshooter-game/3998/11 "2020-10-20T23:37:55Z")

</div>

I’m sorry if this sounds horrifying

---

<div class="post-metadata">

**Author:** ![Satisfaction](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Satisfaction](https://forum.makecode.com/u/Satisfaction)\
**Post date:** [October 20, 2020, 11:38pm UTC](https://forum.makecode.com/t/how-do-i-add-levels-in-a-top-down-spaceshooter-game/3998/12 "2020-10-20T23:38:44Z")

</div>

I was possibly thinking of doing different space thugs for round 1 2 3 and then at four is the boss battle, kind of like the original super mario bros.

---

<div class="post-metadata">

**Author:** ![Dreadmask197](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dreadmask197/32/10494_2.png) [@Dreadmask197](https://forum.makecode.com/u/Dreadmask197)\
**Post date:** [October 20, 2020, 11:39pm UTC](https://forum.makecode.com/t/how-do-i-add-levels-in-a-top-down-spaceshooter-game/3998/13 "2020-10-20T23:39:22Z")

</div>

Hmmm… Let me thnk about that.

---

<div class="post-metadata">

**Author:** ![Satisfaction](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Satisfaction](https://forum.makecode.com/u/Satisfaction)\
**Post date:** [October 20, 2020, 11:41pm UTC](https://forum.makecode.com/t/how-do-i-add-levels-in-a-top-down-spaceshooter-game/3998/14 "2020-10-20T23:41:06Z")

</div>

haha totally okay

---

<div class="post-metadata">

**Author:** ![Satisfaction](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Satisfaction](https://forum.makecode.com/u/Satisfaction)\
**Post date:** [October 20, 2020, 11:52pm UTC](https://forum.makecode.com/t/how-do-i-add-levels-in-a-top-down-spaceshooter-game/3998/15 "2020-10-20T23:52:10Z")

</div>

This is my first time coding with makecode arcade and I have been messing around with some functions but can’t possibly think of how I can make the player spawn into another level once met a required amount of enemy kills. I’ve been looking at this snippet for some guidance: ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/d/dcca6ced168107693a65e4371f93329c6434f01c.png)

---

<div class="post-metadata">

**Author:** ![Dreadmask197](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dreadmask197/32/10494_2.png) [@Dreadmask197](https://forum.makecode.com/u/Dreadmask197)\
**Post date:** [October 21, 2020, 11:10am UTC](https://forum.makecode.com/t/how-do-i-add-levels-in-a-top-down-spaceshooter-game/3998/16 "2020-10-21T11:10:49Z")

</div>

Oh wow!! That is a lot, and you said it was your first time?

---

<div class="post-metadata">

**Author:** ![cosmoscowboy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/cosmoscowboy/32/1718_2.png) [@cosmoscowboy](https://forum.makecode.com/u/cosmoscowboy)\
**Post date:** [October 22, 2020, 1:56pm UTC](https://forum.makecode.com/t/how-do-i-add-levels-in-a-top-down-spaceshooter-game/3998/17 "2020-10-22T13:56:14Z")

</div>

Do you have some working code that you can share? Share the project and paste the link in this discussion.

---

<div class="post-metadata">

**Author:** ![Kat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kat/32/2596_2.png) [@Kat](https://forum.makecode.com/u/Kat)\
**Post date:** [October 22, 2020, 4:03pm UTC](https://forum.makecode.com/t/how-do-i-add-levels-in-a-top-down-spaceshooter-game/3998/18 "2020-10-22T16:03:21Z")

</div>

I would have a certain enemy sprite at the end of each “wave” or “level” and on that sprite destroyed, call a function. The function should use an array for each level and every time that function is called, make your array go up one.  
(Sorry for the scatter-brained gibberish)

---

<div class="post-metadata">

**Author:** ![Satisfaction](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Satisfaction](https://forum.makecode.com/u/Satisfaction)\
**Post date:** [October 28, 2020, 5:01am UTC](https://forum.makecode.com/t/how-do-i-add-levels-in-a-top-down-spaceshooter-game/3998/19 "2020-10-28T05:01:02Z")

</div>

very interesting, i was told when a certain number of spriteEnemies are killed, I skip to the next level or when the score hits a certain number, this sounds much planned out I will see if I can make it.

---

<div class="post-metadata">

**Author:** ![rossana](https://avatars.discourse-cdn.com/v4/letter/r/c4cdca/32.png) [@rossana](https://forum.makecode.com/u/rossana)\
**Post date:** [January 14, 2021, 1:27am UTC](https://forum.makecode.com/t/how-do-i-add-levels-in-a-top-down-spaceshooter-game/3998/20 "2021-01-14T01:27:14Z")

</div>

Hi All, question  
How can I level up, en Galaga type of game. I used a condition if score = 20, change level by1, but it doesnt change level. (tried with forever and game update, tried a few things, didnt change level thouhg)

[Next page](https://forum.makecode.com/t/how-do-i-add-levels-in-a-top-down-spaceshooter-game/3998.md?page=2)
