Skip to content

Repository files navigation

Space Invaders Game

This is a classic remake of the Space Invaders arcade game, built using HTML5, CSS, and JavaScript. Players control a spaceship and attempt to shoot down waves of aliens before they reach the bottom of the screen.

Table of Contents

Features

  • Classic Gameplay: The nostalgic gameplay of Space Invaders with modern browser support.
  • Player Controls: Use keyboard controls to move the spaceship and shoot.
  • Wave System: Aliens increase in difficulty with each wave. (Future implementation)
  • Score Tracking: Keep track of your score as you defeat aliens.

Technologies Used

  • Frontend:

    • HTML5 (Canvas)
    • CSS3
    • JavaScript (ES6)
  • Game Development:

    • Vanilla JavaScript for game logic
    • HTML5 Canvas API for rendering game graphics

Installation

To run the game locally on your machine, follow these steps:

  1. Clone the repository:

    git clone https://github.com/Mitchenya/Space-Invaders.git
    cd Space-Invaders
  2. Open the index.html file:

    You can directly open the index.html file in your browser to play the game.

    open index.html

    Alternatively, you can serve the game using a local server such as live-server:

    npx live-server
  3. Enjoy the game!

Gameplay

  1. Controls:

    • Use the left and right arrow keys to move the spaceship.
    • Press the spacebar to shoot at the aliens.
  2. Objective:

    • Shoot down all the alien invaders before they reach the bottom of the screen.
  3. Scoring:

    • Earn a timed score by completing the wave as fast as possible.
    • Your time will be displayed at the top of the screen.

License

Distributed under the MIT License. See LICENSE for more information.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages