A simple Mail Invaders game developed using vanilla JavaScript. The game features a mail invasion, where the player controls a spaceship that must fend off the mails. The player can move and fire laser to destroy ennemies. The game includes several bonuses including a timer bonus to prevent running out of time, and a local leaderboard to track the player's progress.
To get a local copy up and running follow these simple example steps.
A modern web browser (Chrome, Firefox, Safari, Edge)
Clone the repo:
git clone https://github.com/julienbrs/Mail-invaders
Open the index.html file in your web browser to run the game.
The game is controlled using the arrow keys to move the spaceship, spacebar to fire the laser and several key to activate bonuses. The player must destroy all the ennemies before they reach the bottom of the screen. The player starts with five lives, and loses a life if an alien reaches the bottom or if the player's spaceship is hit.
The player can collect bonuses throughout the game, such as the timer bonus to prevent running out of time and the ability to collect extra lives. There is also a local leaderboard feature to track the player's progress and compare it to other players.
Code restriction: it had to be done in a single JS file.
Bourseau Julien - 2nd year student at Ensimag, 2022 - [email protected]
Project Link: https://github.com/julienbrs/Mail-invaders