Skip to content

Latest commit

 

History

History
52 lines (40 loc) · 1.63 KB

README.md

File metadata and controls

52 lines (40 loc) · 1.63 KB

Space Invaders Game

This is a simple implementation of the classic Space Invaders game using HTML, CSS, and JavaScript.

Table of Contents

Gameplay

The goal of the game is to shoot all the invaders before they reach the shooter. You control the player at the bottom of the grid using the arrow keys to move left and right, and the space bar to shoot lasers.

Features

  • player Control: Move the player left and right using the arrow keys.
  • Shooting Lasers: Shoot lasers at the invaders using the space bar.
  • Invader Movement: Invaders move left and right, and down the grid.
  • Collision Detection: Invaders disappear when hit by a laser.
  • Score Tracking: Keep track of the score as you destroy invaders.
  • Game Over: The game ends when an invader reaches the shooter.

Installation

  1. Clone the repository or download the source code.
    git clone https://github.com/Ares-93/space-invaders.git
  2. Open the index.html file in your web browser.

Usage

  • Press the left arrow key to move the player left.
  • Press the right arrow key to move the player right.
  • Press the space key to fire the laser.
  • Destroy all aliens before the touch the player ship.

Improvements to add later:

  1. Add Sounds
  2. Better Laser handling
  3. Improved alien movement
  4. Better Progression
  5. Add life counter
  6. Improve visuals
  7. Pause and Restart

Credits

  • Developed by: Mohammad Ariz Haider
  • Inspireed by a retro gaming classic.