By Marcelo Lewin Logo

Galactic Invaders

About

A 2D retro-style space shooter where you protect your city from incoming waves of aliens. Shoot them down, earn temporary rapid-fire during bonus moments, and unlock nukes as your score increases. The goal is straightforward: stay alive and keep the city safe.

How to Play

  1. Use ←, ↑, →, ↓ or [WASD] to move your spaceship
  2. Press [Space] to shoot
  3. Press [Q] to activate the nuke (when available)
  4. Press [M] to toggle sound on/off
  5. Destroy aliens to earn points
  6. Avoid getting hit by aliens.
  7. Stop the aliens from destroying your city.
  8. Try to achieve the highest score possible!

Features

  • Smooth player movement with keyboard controls
  • Dynamic shooting mechanics
  • Progressive difficulty with increasing alien waves
  • Score tracking and lives system
  • Sound effects and visual feedback
  • Special nuke power-up to clear the screen
  • Scrolling starfield background for immersive space atmosphere

Controls

  • ←, ↑, →, ↓ or [WASD] : Move
  • [Space] : Shoot
  • [Q] : Activate nuke (when available)
  • [M] : Toggle sound on/off

Why I Created It

I created this game as an experiment in learning Vibe Coding techniques and exploring AI-assisted development tools. I have zero game dev experience, so I figured, if I can, then anyone else can. I did. Now you can too!

Technology Stack

  • PixiJS for 2D rendering (via CDN)
  • HTML5 Audio for sound effects (SFX from FreeSound.org)
  • JavaScript (ES6+)
  • CSS3 for styling

Tools Used

  • Cursor (using various models)
  • ChatGPT
  • Git / GitHub