-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
115 lines (93 loc) · 6.21 KB
/
index.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="assets/css/game.css">
<link rel="stylesheet" href="assets/css/loader.css">
<link rel="shortcut icon" href="assets/images/dino/Idle.png" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js" integrity="sha512-894YE6QWD5I59HgZOGReFYm4dnWc1Qt5NtvYSaNcOP+u1T9qYdvdihz0PPSiiqn/+/3e7Jo4EaG7TubfWGUrMQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<title>Dino - CollectFoods 2D</title>
</head>
<body class="">
<!-- LOADING SCREEN -->
<did class="loader-screen">
<div class="loader"></div>
<span>Loading</span>
</did>
<!-- GAME -->
<div class="content">
<audio id="music" type="audio/mpeg" src="assets/music/BoxCat Games - Mission.mp3" loop></audio>
<img id="dino" class="" src="assets/images/dino/Idle.png" alt="DINO">
<img class="food" src="assets/images/object/Mushroom_1.png" alt="Mushroom - collect">
<img class="food" src="assets/images/object/Mushroom_1.png" alt="Mushroom - collect">
<img class="food" src="assets/images/object/Mushroom_1.png" alt="Mushroom - collect">
<img class="food" src="assets/images/object/Mushroom_1.png" alt="Mushroom - collect">
<img class="food" src="assets/images/object/Mushroom_1.png" alt="Mushroom - collect">
<img class="food" src="assets/images/object/Mushroom_2.png" alt="Mushroom - collect">
<img class="food" src="assets/images/object/Mushroom_2.png" alt="Mushroom - collect">
<img class="food" src="assets/images/object/Mushroom_2.png" alt="Mushroom - collect">
<img class="food" src="assets/images/object/Mushroom_2.png" alt="Mushroom - collect">
<img class="food" src="assets/images/object/Mushroom_2.png" alt="Mushroom - collect">
<img class="food" src="assets/images/object/Mushroom_1.png" alt="Mushroom - collect">
<img class="food" src="assets/images/object/Mushroom_1.png" alt="Mushroom - collect">
<img class="food" src="assets/images/object/Mushroom_1.png" alt="Mushroom - collect">
<img class="food" src="assets/images/object/Mushroom_1.png" alt="Mushroom - collect">
<img class="food" src="assets/images/object/Mushroom_1.png" alt="Mushroom - collect">
<img class="food" src="assets/images/object/Mushroom_2.png" alt="Mushroom - collect">
<img class="food" src="assets/images/object/Mushroom_2.png" alt="Mushroom - collect">
<img class="food" src="assets/images/object/Mushroom_2.png" alt="Mushroom - collect">
<img class="food" src="assets/images/object/Mushroom_2.png" alt="Mushroom - collect">
<img class="food" src="assets/images/object/Mushroom_2.png" alt="Mushroom - collect">
<div class="nav-bar">
<button class="btn btn-to-pause" onclick="pause();">
<span>Pause</span>
</button>
<button class="btn" onclick="music();">
<span>Music</span>
</button>
<span class="btn" id="scoreboard"></span>
</div>
<div id="modal-pause-game">
<div class="bg-pause">
<div class="modal-pause">
<br>
<h1 id="modal-title">Start</h1>
<span id="modal-score"> </span>
<span>- Options -</span>
<button class="btn btn-modal btn-return" onclick="pause();">Return</button>
<div style="display: flex;">
<button class="btn btn-modal btn-restart" onclick="restart()">Restart</button>
<button class="btn btn-modal btn-music" onclick="music()">Music</button>
</div>
<br>
<br>
<span>Dino - CollectFoods 2D</span>
</div>
</div>
</div>
<!-- GROUND -->
<div class="ground-top"></div>
<div class="ground"></div>
<!-- <img class="ground" src="assets/images/ground/ground.png" alt="ground"> -->
<!-- <img class="ground" src="assets/images/ground/ground.png" alt="ground" style="left: 50vw;"> -->
<!-- <img class="block ph0" src="assets/images/tiles/1.png" style="left: calc(128px * 0)"><img class="block ph0" src="assets/images/tiles/2.png" style="left: calc(128px * 1)"><img class="block ph0" src="assets/images/tiles/2.png" style="left: calc(128px * 2)"><img class="block ph0" src="assets/images/tiles/2.png" style="left: calc(128px * 3)"><img class="block ph0" src="assets/images/tiles/2.png" style="left: calc(128px * 4)"><img class="block ph0" src="assets/images/tiles/2.png" style="left: calc(128px * 5)"><img class="block ph0" src="assets/images/tiles/2.png" style="left: calc(128px * 6)"><img class="block ph0" src="assets/images/tiles/2.png" style="left: calc(128px * 7)"><img class="block ph0" src="assets/images/tiles/2.png" style="left: calc(128px * 8)"><img class="block ph0" src="assets/images/tiles/2.png" style="left: calc(128px * 9)"><img class="block ph0" src="assets/images/tiles/2.png" style="left: calc(128px * 10)"><img class="block ph0" src="assets/images/tiles/2.png" style="left: calc(128px * 11)"><img class="block ph0" src="assets/images/tiles/2.png" style="left: calc(128px * 12)"><img class="block ph0" src="assets/images/tiles/2.png" style="left: calc(128px * 13)"><img class="block ph0" src="assets/images/tiles/3.png" style="left: calc(128px * 14)"> -->
<div class="controls">
<span id="arrow-left"><i class="bi bi-arrow-left-circle-fill"></i></span>
<span id="arrow-right"><i class="bi bi-arrow-right-circle-fill"></i></span>
</div>
</div>
<script src="assets/js/game.js"></script>
<script>
$(window).on('load', function () {
$(".loader-screen").fadeOut(1000);
$(".content").fadeIn(1000);
});
window.onresize = function (event) {
resizedScreen();
};
</script>
</body>
</html>