Cosmic Invaders is a Space Invaders inspired game made with vanilla JavaScript and the Canvas API. The only library used is ESLint for linting. This project is a simple game created to exercise and improve my JavaScript skills.
You can play the game here.
- Classic Space Invaders gameplay
- Simple codebase
- Made with vanilla JavaScript and Canvas API
- ESLint for code linting
- Clone the repository:
git clone https://github.com/yourusername/cosmic-invaders.git
- Navigate to the project directory:
cd cosmic-invaders
- Open
index.html
in your browser to play the game.
Use the arrow keys to move the player left and right. Press the spacebar to shoot.
To lint the code, run:
npm run lint