How to Make a Space Shooter Game in MakeCode Arcade

Опубликовано: 27 Октябрь 2024
на канале: Microsoft MakeCode
116,240
1.3k

Learn how to make a 2D "space shooter" style game in MakeCode Arcade, a free online tool for making retro-style games!

Follow along at: https://arcade.makecode.com

0:00 - Intro to MakeCode Arcade
0:45 - Add starfield
1:15 - Create player spaceship
2:37 - Move with buttons
2:52 - Staying on screen
3:26 - About code execution
4:28 - Shooting
5:45 - Velocity and the XY-plane
7:32 - Spawning enemies
9:28 - Sprite placement
10:20 - Enemy movement
11:14 - Random Y position
12:35 - Collision detection
13:35 - Losing life
14:30 - Frame rate discussion
15:58 - Destroying enemies
17:20 - Expanding blocks & particle effect
19:22 - Search & screen shake
20:04 - Lasers impacting
21:49 - Gaining points
22:04 - What's next

Here's the final result:
https://makecode.com/_gj2YY16TkCj9

Expand on your game by:
Adding health bars (   • How to Add Health Bars to Your MakeCo...  )
Increasing the difficulty (coming soon)
Adding power ups (   • How to Add Power Ups to Your MakeCode...  )

Discuss this video at: https://forum.makecode.com/t/how-to-m...