Skip to content

scepeday/pixel-invaders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pixel-Invaders

You control a spaceship at the bottom of the screen and must shoot down waves of invading aliens before they reach you or the ground.
The game runs completely in the browser using:

  • HTML5 for the game layout
  • CSS3 for visuals
  • Vanilla JavaScript for game logic, collision detection and input handling

This project is great as an example of building a small game with pure JS, using only the DOM.

Features

  • Player spaceship that can move left and right
  • Shoot projectiles to destroy enemies
  • Multiple alien invaders moving across and down the screen
  • Lives or limited attempts
  • Score tracking
  • Game over and restart

Note: You can customize all of these in the source code (speed, number of enemies, etc.).

Controls

Default controls:

  • A / D keys – Move the ship left and right
  • Spacebar – Shoot
  • P - Pause the game

You can change the keys in the JavaScript file if you prefer different controls.

Getting Started

1. Clone or Download the Repository

git clone https://github.com/scepeday/pixel_invaders.git
cd pixel_invaders

About

A simple Space Invaders–style arcade game built with HTML, CSS, and vanilla JavaScript only

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors