Skip to content

Commit

Permalink
Merge pull request #632 from SimranLahrani842/simmi
Browse files Browse the repository at this point in the history
added planet defense game
  • Loading branch information
panwar8279 authored Jul 1, 2023
2 parents 0873720 + 2f3764c commit 60c2f9f
Show file tree
Hide file tree
Showing 5 changed files with 491 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/Games/Planet_Defense/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# _Game_Name_

---

Planet Defense

<br>

## _Description 📃_

- Planet Earth needs to be protected.
- There is a gun with planet.
- Gun is used to attack stones or meteroids hitting the planet.
- Score increases if you hit the meteroids.
- Game ends if any one touches the earth.

## _functionalities 🎮_

- Stones come from all directions that is 360 degrees.
- Gun can rotate 360 degree to hit the stone.
- To hit with gun just press to hit the stones.
- The stones are of different size and can be alone or with many.
- Game can also be started again if you want.

<br>

## _How to play? 🕹️_

- Gun can rotate 360 degree to hit the stone.
- To hit with gun just press to hit the stones.
- the stone size varies so we need to hit them all.

<br>
7 changes: 7 additions & 0 deletions src/Games/Planet_Defense/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<head>
<link href="style.css" />
</head>
<body style="background-image: url('space.jpg');">
<canvas id="canvas"></canvas>
<script src="script.js"></script>
</body>
Loading

0 comments on commit 60c2f9f

Please sign in to comment.