Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added planet defense game #632

Merged
merged 1 commit into from
Jul 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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