Welcome to Space Invaders, a single-player JavaScript game inspired by the classic arcade game! This project is built without using frameworks or canvas, relying entirely on plain JavaScript, DOM manipulation, and HTML.
- 60 FPS: The game runs at a smooth 60 frames per second to ensure consistent motion with no frame drops.
- Keyboard Controls: Controlled entirely using the keyboard for smooth, uninterrupted gameplay.
- Pause Menu: Pause the game at any time, with options to continue or restart.
- Scoreboard: Displays your score, remaining lives, and game timer.
- Use the arrow keys to move your ship left and right.
- Press the spacebar to shoot at the invading aliens.
- Defend yourself and eliminate all aliens before they reach your base!
- Clone the repository or download the project files to your local machine.
- Open the
index.html
file in your web browser. You can do this by double-clicking the file or right-clicking it and selecting "Open with" followed by your preferred web browser. - Enjoy playing the game!
.
|-- appHandler.js
|-- images
| |-- bg.gif
| |-- bom.png
| |-- invader.png
| |-- invedorLaser.png
| |-- shooter.png
| `-- shot.webp
|-- index.html
|-- readme.md
|-- sounds
| |-- invaderkilled.wav
| |-- loser.mp3
| |-- shoot.wav
| `-- win.mp3
`-- style.css
- This project leverages
requestAnimationFrame
for smooth animations. - Developer tools are used to monitor performance and ensure that the game runs at a stable 60 FPS.
- Abdulla Yusuf (abdyusuf)
- Habib Mansoor (hmansoor)
- HUSAIN JAAFAR (hujaafar)