Larry Zhu
Home

Swarm

A defense game where you protect your base from enemy swarms

About the Project

Swarm is a defense game I created in Scratch. In this game, you control a player who is equipped with a gun and must shoot the swarm of enemies attacking your base.

I was inspired by classic arcade defense games and wanted to create something with exciting gameplay and increasing difficulty. The game features multiple modes and power-ups to keep the gameplay interesting.

How to Play

  1. Use your mouse to aim at the enemies
  2. Press space or click to shoot bullets
  3. Be careful with your ammo - you have a limited amount before you must reload
  4. Protect your base from the swarm of enemies
  5. Collect power-ups to gain advantages

Game Modes

  • Classic Mode: Defend your base through increasingly difficult waves of enemies
  • Endless Mode: See how long you can survive against an endless swarm of enemies

Notes and Credits

Most of this project was made by me, but I did use some YouTube tutorials for things like health bars. If this project gets unshared, it is most likely due to an update or a major bug fix.

Note: Advertising in the comments is okay, but spammers will be deleted.

Version History

  • Version 1.1.1: Fixed reloading, added enemy knockback, added new powerup for Classic and Endless. Minor issues fixed.
  • Version 1.1: Added Endless mode, title screen, and game over screen, fixed minor issues.
  • Version 1.0: Public Release

What I Learned

Creating this project helped me learn about:

  • Game mechanics and player controls in Scratch
  • Creating enemy AI and movement patterns
  • Implementing shooting mechanics and collision detection
  • Designing different game modes and difficulty progression
  • Managing game states (title screen, gameplay, game over)

Play the Project

You can play my Swarm project on Scratch by clicking the button below: