html
html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html>
<head>
<title>Archery Game</title>
<meta name="viewport" content="width=device-width, initial-scale=1" >
<meta charset="utf-8">
</head>
<body>
<div id="mainContainer">
<canvas id="myCanvas"></canvas>
<canvas id="animCanvas"></canvas>
<h1 id="score">0</h1>
<div id="showPoint">
<div id="timerDiv"></div>
<p id="arrs">↑</p><span class="u">↑ +4</span>
</div>
<div id="startMenu">
<h1 id="title"><span style="font-size:50px">A</span>RCHERY<br><span style="font-size:50px">G</span>AME</h1>
<button>TAP TO START</button>
<h2><span id="best">0</span><br>Best</h2>
<a id="buymeacoffee" href="https://www.buymeacoffee.com/adnanzawad" target="_blank" rel="noopener noreferrer">
<img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me a Coffee" style="height: 51px !important; width: 217px !important;">
</a>
</div>
</div>
</body>
</html>
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
body {
margin: 0;
font-family:monospace;
text-align:center;
height: 100vh;
width: 100vw;
}
#buymeacoffee {
z-index: 10000;
position: relative;
top: 10px;
width: 100%;
display: block;
text-align: center;
}
#buymeacoffee img {
box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3);
border-radius: 10px;
}
#mainContainer {
transform-origin:0% 0%;
position:absolute;
width:100%;
top:0;
left:0;
Enter to Rename, Shift+Enter to Preview
js
js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//Thanks for visiting my code
//Created By : Adnan Zawad Toky
//Idea & Sounds : Archery Black
//Version : 3.0.1
//If you enjoy playing this game, don't forget to appreciate
//If you have any idea or feedback, please comment...
window.onload = function(){
alert("Thanks everyone (specially SoloLearn) for making my code as Code Of The Day...\n👍👍👍")
alert("Please make sure that your device is not in silent mode...");
String.prototype.repeat = String.prototype.repeat ||
function(c){
var r= '';
for(var i=0; i<c; ++i);
r += this;
return r;
}
var asrcd = "toky";
var startPage = document.getElementById("startMenu");
startPage.addEventListener("click",startGame)
function startGame(){
startPage.style.display = "none";
loadGame();
try{
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Laufen