Blaster Game
A colorful, retro-style vertical space shooter with procedurally generated sound effects.
Overview
Blaster is a fast-paced arcade game where you control a ship at the bottom of the screen, defending against waves of descending enemy saucers. The game features a clean, neon-vector aesthetic, a dynamic leveling system, and procedurally generated audio for an immersive experience without external assets.
This game was created as an AI-assisted project, starting as a fork of the Asteroids game and evolving into a unique space shooter.
Features
- Arcade Gameplay: Classic vertical shooter action—move, dodge, and fire.
- Procedural Audio: All sound effects, from lasers to explosions, are generated in real-time using the Web Audio API.
- Progressive Difficulty: The game gets harder as your score increases, with enemies becoming faster and more resilient.
- Scoring System: Includes a live score, lives counter, and level indicator.
- Responsive Canvas: The game area adjusts to fit the browser window.
- Single-File Architecture: The entire game is contained in a single HTML file.
Controls
- Move Left:
A
or Left Arrow
- Move Right:
D
or Right Arrow
- Fire:
Space
- Pause:
P
Technical Details
- Engine: Built with vanilla JavaScript and rendered on the HTML5 Canvas.
- Audio: Utilizes the Web Audio API to create synthesized sound effects on the fly, eliminating the need for external audio files.
- State Management: Game logic and state are managed within a simple game loop.
- Styling: Uses CSS variables for easy theming of colors and UI elements.
Credits
- Creator: Oskar Austegard (@oaustegard)
- AI Assistant: The initial concept and code were generated by an AI model based on a prompt to augment the existing Asteroids game.
For issues, feature requests, or contributions, please open an issue on GitHub.