Space Shooter is an engaging 2D browser-based game where players control a spaceship to shoot enemies, avoid obstacles, and level up by scoring points. The game is designed to be responsive and works seamlessly on both desktop and mobile devices.
You can view the live demo of the project here.
- Interactive Gameplay: Control a spaceship, shoot bullets, and destroy enemies.
- Level Progression: Players level up as they score points, with increasing difficulty.
- Responsive Design: Works on both desktop and mobile devices with touch controls.
- Game Over Modal: Displays the final score and highest level achieved.
- Animations: Smooth animations for enemies, bullets, and explosions.
- Mobile Controls: On-screen buttons for movement and shooting.
- Frontend:
- HTML5, CSS3, JavaScript (ES6+)
- Bootstrap 5 for responsive design
- Backend:
- No backend required (client-side game)
- Hosting:
- Firebase Hosting for live demo
To clone the repository, use the following commands:
git clone https://github.com/KaveenDK/SpaceShooterGame.git
cd IT-Assignment-08The project is organized as follows:
IT-Assignment-09/
│
├── index.html # Main HTML file
├── js/
│ └── script.js # Game logic and functionality
├── stylesheet/
│ └── styles.css # Game styling
├── assets/
│ └── images/ # Game assets (e.g., icons, logos)
├── README.md # Project documentation
└── .gitignore # Git ignore file
- Clone the repository using the commands above.
- Open the project folder in your code editor (e.g., VS Code).
- Open
index.htmlin your browser to view the application.
- Click the Start Game button to begin.
- Use the following controls to play:
- Arrow Keys: Move the spaceship left or right.
- Spacebar: Shoot bullets.
- Mobile Controls: Use on-screen buttons for movement and shooting.
- Destroy enemies to score points and level up.
- Avoid letting enemies reach the bottom of the screen to prevent a game over.
- The game ends when an enemy crosses the bottom boundary.
- Power-Ups: Add collectible power-ups for temporary boosts (e.g., faster shooting, shields).
- Enemy Variations: Introduce different types of enemies with unique behaviors.
- Boss Levels: Add challenging boss fights at certain levels.
- Sound Effects: Include background music and sound effects for shooting and explosions.
- Multiplayer Mode: Allow two players to compete or cooperate in real-time.
If you found this project helpful, consider supporting me: