Welcome to Space Shooter, a thrilling vertical scrolling space shooter game built with HTML5 and JavaScript! Take control of a spaceship, fend off waves of alien enemies, collect power-ups, and aim for the top of the leaderboard. Play it now at fubak.github.io/grok-space-shooter/!
- Objective: Destroy waves of alien ships while dodging their attacks to achieve the highest score.
- Controls:
- WASD: Move your spaceship (up, left, down, right).
- Esc: Pause the game.
- Your ship fires automatically—focus on dodging and aiming!
- Features:
- Levels: Each wave cleared advances you to a new level with faster, more numerous enemies.
- Power-Ups: Collect icons to upgrade your speed or weapons (single, double, spread, missile).
- Enemies: Four unique alien ship designs that shoot back, increasing in frequency per level.
- Top Scores: Compete to be among the top 10 players (stored locally for now).
- Visit fubak.github.io/grok-space-shooter/ in your browser.
- Use WASD to navigate your ship across the bottom half of the screen.
- Shoot down enemies and grab power-ups to survive longer.
- When the game ends, enter your name to save your score and try to beat the top 10!
Space Shooter is hosted on GitHub Pages, a free static hosting service. The game runs entirely in your browser with no external dependencies.
- URL: fubak.github.io/grok-space-shooter/
- Source: All code is in
index.html, a single file containing HTML, CSS, and JavaScript.
Built from scratch using:
- HTML5 Canvas: For rendering the game.
- JavaScript: Core game logic and mechanics.
- CSS: Basic styling for the canvas.
- Clone this repository:
git clone https://github.com/fubak/grok-space-shooter.git
- Open
index.htmlin a web browser: On Windows/Mac: Double-click the file. Or use a local server (e.g.,python -m http.serverin the directory, then visitlocalhost:8000).
- Dynamic canvas scaling to fit browser windows (minimum 480x640).
- Enemy waves with increasing speed and numbers.
- Power-ups with unique icons (speed, spread, double, missile).
- Local top 10 scoreboard (stored in localStorage).
- Global leaderboard using a backend (e.g., Firebase).
- Sound effects and music.
- Mobile touch controls.
Enjoy this space shooter generated by Grok, an AI assistant by xAI! Developed by Brad Shannon with inspiration from classic shooters like Space Invaders and Radiant Silvergun.
Love the game and want to help improve it? Contributions are welcome!
- Fork this repository.
- Create a branch:
git checkout -b feature/your-idea
- Commit your changes:
git commit -m "Add your feature"
- Push to your branch:
git push origin feature/your-idea
- Open a Pull Request:
Suggestions? Open an Issue!
- Developer: Brad Shannon
- AI Assistance: Grok by xAI
This project is open-source under the MIT License. Feel free to use, modify, and share it!