A browser-based Galaga-style space shooter arcade game implemented in JavaScript using HTML5 Canvas.
Gallega-Zed is a faithful recreation of the classic 1981 Namco arcade game Galaga. Control your spaceship at the bottom of the screen and battle waves of alien insects. Survive as long as possible, clear stages, and set the highest score!
- Classic arcade gameplay with authentic mechanics
- Formation and attack phases with multiple enemy types
- Boss Galaga enemies that can capture your fighter
- Challenging Stages with bonus scoring opportunities
- Dual fighter mechanic when rescuing a captured ship
- Score system with point multipliers for different enemies
- Progressive difficulty across stages
No installation required! You can run the game in two ways:
Simply open the index.html file in a web browser to play.
Note: When running directly from the file system, sound effects and music will not work due to browser CORS restrictions.
For full functionality including sound:
-
If you have Node.js installed:
npm install express node server.jsThen open your browser to
http://localhost:3000 -
Alternatively, use any other local server like Python's built-in server:
# Python 3 python -m http.server # Python 2 python -m SimpleHTTPServerThen open your browser to
http://localhost:8000
- Clone this repository
- Run a local server as described in Method 2 above
- No build process required - it's vanilla JavaScript!
- Arrow Keys: Move your ship left and right
- Space Bar: Fire your weapon
- Enter: Start game / Confirm
- P: Pause game
- You start with 3 lives
- Earn an extra life at 20,000 points and every 70,000 points thereafter
- Enemies are worth more points when attacking compared to when in formation
- Boss Galaga enemies require two shots to destroy
- Boss Galaga can capture your fighter with a tractor beam
- Rescue your captured fighter by shooting the Boss during a diving attack
- Rescuing your fighter gives you a dual fighter with double firepower
- Every 4th stage is a Challenging Stage where you can earn bonus points
- A perfect score in a Challenging Stage awards 10,000 points
- Bees (Zako): The most common enemy, worth 50 points in formation and 100 points when attacking
- Butterflies (Goei): Medium enemies, worth 80 points in formation and 160 points when attacking
- Boss Galaga: The toughest enemies that take two hits to destroy, worth 150 points in formation and between 400-1600 points when attacking depending on escort count
- Dual Fighter: After rescuing a captured fighter, you control two ships side by side with double firepower
- Transformed Enemies: Starting from Stage 4, enemies can transform into special groups that award bonus points if all are destroyed
- Challenging Stages: Every 4 stages, shoot all 40 enemies for a "perfect" bonus
The game is built with a component-based architecture and uses the following key JavaScript files:
game.js: Main game initializationconstants.js: Game constants and configurationentity.js: Base entity class for all game objectsplayer.js: Player ship implementationenemies.js: Enemy types and behaviorsprojectiles.js: Bullets and tractor beameffects.js: Visual effects and animationslevels.js: Level management and enemy patternsgameStates.js: Game state managementui.js: User interface elementssoundManager.js: Audio handlingassetManager.js: Asset loading and managementutils.js: Utility functions
Developed as a project to recreate the classic Galaga arcade game.
Original Galaga game by Namco (1981).
This reimplementation is for educational purposes only.
This project is available for personal, non-commercial use only.