Skip to content

A Vanilla JavaScript Space Invaders clone. With sound, W,A,S,D key input and storing the high score in local storage. A just for fun project, because I was feeling nostagic.

Notifications You must be signed in to change notification settings

MrJanHorak/invadersFromSpace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Space Invaders Game

Welcome to the Space Invaders game! This classic arcade game challenges you to defend Earth against a horde of advancing aliens. Use your skills to maneuver the player's spaceship, shoot down alien invaders, and survive the onslaught.

Table of Contents

Introduction

Space Invaders is a web-based game developed using HTML, CSS, and JavaScript. It provides a nostalgic gaming experience with classic retro-style graphics and sound effects.

Getting Started

To play the game, simply open the index.html file in a modern web browser.
You can also access the game online here.

Game Controls

Move Player: Use the 'WASD' keys or arrow keys ('←', '↑', '→', '↓') to navigate the player's spaceship.

Shoot: Press the 'SPACE' key to shoot bullets and eliminate alien invaders.

Rules: Click the 'RULES' button to view the game rules and controls.

Scoring

  • Defeat alien invaders to earn points.
  • Bonus life awarded every 10,000 points.
  • Shoot down the flying saucer for a 1,000 point bonus.

Rules

  1. Use the 'WASD' or arrow keys to move your player.
  2. Press 'SPACE' to shoot and eliminate alien invaders.
  3. Prevent aliens from reaching the bottom to advance to the next level.
  4. Gain a bonus life every 10,000 points.
  5. Lose a life if you collide with an alien or get hit by an alien bullet.
  6. Shoot down the flying saucer for a 1,000 point bonus.
  7. Alien speed increases with each level.
  8. Aliens begin shooting back after reaching level 3.

Features

  • Responsive and retro-styled user interface.
  • Dynamic alien movement and bullet firing.
  • Bonus life system based on score.
  • Interactive game rules modal.
  • Engaging sound effects for player actions.

Contributing

Contributions to the Space Invaders game are welcome. If you have suggestions, improvements, or find any issues, feel free to create a pull request.

License

The Space Invaders game is open-source and released under the MIT License. Feel free to use, modify, and distribute the code. Enjoy gaming!

About

A Vanilla JavaScript Space Invaders clone. With sound, W,A,S,D key input and storing the high score in local storage. A just for fun project, because I was feeling nostagic.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published