Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 878 Bytes

README.md

File metadata and controls

39 lines (27 loc) · 878 Bytes

Cosmic Invaders

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.

Demo

You can play the game here.

Features

  • Classic Space Invaders gameplay
  • Simple codebase
  • Made with vanilla JavaScript and Canvas API
  • ESLint for code linting

Installation

  1. Clone the repository:
    git clone https://github.com/yourusername/cosmic-invaders.git
  2. Navigate to the project directory:
    cd cosmic-invaders
  3. Open index.html in your browser to play the game.

Usage

Use the arrow keys to move the player left and right. Press the spacebar to shoot.

Development

To lint the code, run:

npm run lint