Skip to content

ZAINKHAN25/Space-Shooter-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Canvas Shooter Game

A simple shooter game implemented in HTML5 Canvas and JavaScript.

Overview

This game is a basic shooter game where the player controls a spaceship using the mouse or touch input. The objective is to shoot down enemy spaceships and collect health kits while avoiding collisions with enemies.

Features

  • Responsive design for both desktop and mobile devices.
  • Player-controlled spaceship with mouse or touch input.
  • Shooting bullets to destroy enemy spaceships.
  • Enemy spaceships with varying speeds.
  • Health kits for replenishing health.
  • Score tracking and health display.

Game Controls

  • Move the spaceship: Move your mouse or touch the screen.
  • Shoot bullets: Click the mouse or tap the screen.

How to Play

  1. Open index.html in a web browser.
  2. Control the spaceship using your mouse or touch input.
  3. Click or tap to shoot bullets and destroy enemy spaceships.
  4. Collect health kits to replenish your health.
  5. Avoid collisions with enemy spaceships to prevent health loss.
  6. Aim for a high score by destroying as many enemies as possible.

Screenshots

Screenshot 2024-02-08 195231

Dependencies

  • No external dependencies. The game uses HTML5 Canvas and JavaScript.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments