Skip to content

Commit f438615

Browse files
Add files via upload
1 parent 81dea9e commit f438615

File tree

4 files changed

+707
-0
lines changed

4 files changed

+707
-0
lines changed

Archery Game/README.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
![banner](https://user-images.githubusercontent.com/79866006/149248150-1fa57bec-599e-4a85-9e37-e5e1fe78ccd8.png)
2+
3+
Written by The Young Programmer 💻
4+
5+
# The Game
6+
7+
### Description
8+
9+
Archery is a mini game made with HTML, CSS and JavaScript. In this game, you have to rotate your device in a Landscape mode.
10+
The bow moves to and fro on the left side of the screen and, on the other side, is a target moving also. The player's goal is to shoot arrows at the target.
11+
12+
### How to play
13+
14+
This game was developped using a web intetface i.e HTML, CSS and JavaScript.
15+
So this game can only be played on the web, but very soon an App will be cteated for this game, when its fully modified.
16+
- link to play the game: [click here](https://the-young-programmer.github.io/Archery-Game/)
17+
18+
### Support
19+
20+
pls support me by :
21+
- Follow me on github
22+
- Give me a star
23+
24+
Thanks for your Support...

Archery Game/index.html

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<!-- Created by The Young Programmer🎖-->
2+
3+
<!DOCTYPE html>
4+
<html>
5+
<head>
6+
<title>Archery Game</title>
7+
<meta name="viewport" content="width=device-width, initial-scale=1" >
8+
<meta charset="utf-8">
9+
<link rel="stylesheet" href="style.css">
10+
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
11+
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@9"></script>
12+
13+
</head>
14+
<body>
15+
<script>
16+
swal.fire({ title: 'Input your name', input: 'text', inputValidator: function(value) { return new Promise(function(resolve, reject) { if (value) { resolve(); } else { reject('pls input your name!.'); } }); } }).then(function(result) { swal.fire({ type: 'success', html: 'Welcome:' + result }); })
17+
</script>
18+
<div id="mainContainer">
19+
<canvas id="myCanvas"></canvas>
20+
<canvas id="animCanvas"></canvas>
21+
<h1 id="score">0</h1>
22+
<div id="showPoint">
23+
<div id="timerDiv"></div>
24+
<p id="arrs">&uarr;</p><span class="u">&uarr; +4</span>
25+
26+
</div>
27+
<div id="startMenu">
28+
<h1 id="title"><span style="font-size:60px">A</span>RCHERY<br><span style="font-size:60px">G</span>AME</h1>
29+
<h2>
30+
<span style="font-size:14px">The Young Programmer 💻</span></h2><br />
31+
<button>TAP TO START</button>
32+
<h2><span id="best">0</span><br>Best</h2>
33+
</div>
34+
</div>
35+
</body>
36+
<script src="script.js"></script>
37+
</html>

0 commit comments

Comments
 (0)