Skip to content

dani24sahu/2d-shooting-game-html-canvas-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2D Shooting Game Using HTML-Canvas and Vanilla Javascript

Hello! It's my first html canvas game, I have created using vanilla JavaScript. You can see the Controls and Rules below

Demo

Play Click Here

Rules

  1. Killing each enemy will give you 10 points.

  2. Light weapon is free, you can use as much as you want.

  3. Heavy weapon per shot cost 2 points. You must have more than 2 points in order to use Heavy weapon

  4. Huge weapon per shot cost 20 points. You must have at least 20 points in order to use Huge weapon

  5. Light weapon is faster but weaker

  6. Heavy weapon is slower but deals much damage

  7. Huge weapon kill each enemy instantly

Controls

Currently it is only PC/Laptop friendly

Left Click to attack with Light Weapon

Right Click to attack with Heavy Weapon

Press Spacebar to attack with Huge Weapon