I created this game in 10 days when I first learnt MakeCode Arcade. This platform is really fun and easy to create a Arcade games you like, I will show you how to make this!
I will buy you lunch if you can score more than 1200.. 🙂
How does the program work?
Here is the monster movement control, I made the monster going down zig-zag. The monster moves to the right border, then go down one line and go back to the left border and go down. Repeat the movement until it touches the player or when it get shot.
I made a variable to check if the monster is killed or not. If the monster is not killed, it will continue the movement. When the monster is killed or hit the player, it will spawn somewhere in line 1 to 3.
I also give a point bonus, when the monster goes more downward, it will give more points to the player.
I made levels by using different variables , so that monster have different behavior at every level.
- For level 2, I make the monster to shoot bullet.
- For level 3, I make the monster become hard to hit by making it invisible and appear every step.
For this level definer, you need to set the variable to the number that you need for each level. For example of level 5,
- ‘Kill_Target’ is the number of monster you have to kill to advance to the next level
- ‘monster_invisible’ to tell whether the monster will be invisible or not.
- Set ‘Alien’ to different monster type.
- ‘monster_type’ is how much score you get from hit the monster.
- ‘monster_delay_set’ the shorter you set it the faster the monster moves.
Before calling the function ‘playing’ to start the level manager, I also have to turn on the monster stay in screen or else it will bug the game and you will never see the monster.
I also reserved a function to change the background for each level, but I am too lazy to create the background and keep them all the same… XD
When press ‘A’ button, the spaceship will shoot a bullet up, i.e. -y is upside. If the bullet hits the monster, it will add points according to the ‘monster_type’ I defined in level definer as well as how low the monster go down. Then, make the variable ‘killed’ to one so that the function will do the monster reset in the level manager.
Attacked by Monster!
When the monster’s bullet hit the spaceship, you will minus a life. Then, will destroy the bullet, so that it will not double hit the spaceship.
When the monster hit the spaceship you will also minus a life and this time the monster will go back to the top at line 1-3. If it is level 8, the monster will go back at once, so that it will not double hit the spaceship.
If you got hit by the monster or shot by it 3 times you will game over.
5 thoughts on “Space Invader”
Hello there, just became alert to your blog through Google, and found that it is really informative. I抦 going to watch out for brussels. I抣l be grateful if you continue this in future. A lot of people will be benefited from your writing. Cheers!
Thanks a lot for your comments and encouragement, we have stopped the update for a while since my kids are busy for their new school life.
We are planning to resume project update. Stay tuned!
One other issue is when you are in a problem where you will not have a cosigner then you may actually want to try to make use of all of your federal funding options. You can find many grants and other scholarship grants that will provide you with finances to support with classes expenses. Thanks a lot for the post.
A further issue is that video games can be serious naturally with the main focus on finding out rather than amusement. Although, it has an entertainment element to keep your children engaged, each game is generally designed to work with a specific group of skills or area, such as numbers or scientific discipline. Thanks for your article.
What抯 Happening i’m new to this, I stumbled upon this I’ve found It positively useful and it has aided me out loads. I hope to contribute & assist other users like its aided me. Good job.