-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
177 lines (165 loc) · 8.39 KB
/
index.html
File metadata and controls
177 lines (165 loc) · 8.39 KB
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="style.css">
<title>Run</title>
<link rel="icon" type="image/x-icon" href="./img/logo.png">
</head>
<body>
2
<body>
<link rel="preload" href="https://drive.google.com/thumbnail?id=1LfRNG8pJK8F0lYtXH9tfGT70l4IW-66S&sz=w1000" as="image">
<link rel="preload" href="https://drive.google.com/thumbnail?id=1oxPBLaiwJR1QzOrLC4Z_dt5nFl56RzoN&sz=w1000" as="image">
<link rel="preload" href="https://drive.google.com/thumbnail?id=1tbtI6RBfVzPV8TbA-Ww44E5Dz5_Ek3m0&sz=w1000" as="image">
<link rel="preload" href="https://drive.google.com/thumbnail?id=1eIBkrLk1cMlnsLETX1sLeqOc0On0D2R2&sz=w1000" as="image">
<div class="start screen">
<div class="main-title row d-flex justify-content-center align-items-center">
<div class="col-12">
<div class="d-flex justify-content-center">
<h1>Run</h1>
</div>
<div class="col-12">
<h2><b>A game by <a href="https://github.com/adserasinghe">@adserasinghe : )</a></b></h2>
</div>
</div>
<div class="col-12">
<div class="d-flex justify-content-center">
<p class="bold-text">A Horizontal Scrolling Journey Through the Darkness to Find Home. Scroll or swipe right to Start.</p>
</div>
</div>
<div class="col-12 mt-5">
<div class="d-flex justify-content-center">
<div class="mouse-scroll">
<div class="mouse">
<div class="wheel"></div>
</div>
<div class="arrow-left"></div>
<div class="arrow-right"></div>
</div>
</div>
</div>
</div>
</div>
<div class="win screen">
<div class="main-title row d-flex justify-content-center align-items-center">
<div class="col-12">
<div class="d-flex justify-content-center">
<h1>Congratulations!</h1>
</div>
</div>
<div class="col-12">
<div class="d-flex justify-content-center">
<p>You arrived home alive.</p>
</div>
<br>
<div class="col-12">
<p><a target=_blank href="https://github.com/adserasinghe">See More Projects</a></p>
</div>
</div>
<div class="col-12 mt-3 mb-4">
<div class="d-flex justify-content-center">
<button class="btn btn-light restartButton">Restart</button>
</div>
</div>
<div class="col-12 scores">
<div class="d-flex justify-content-center">
<p>Time: <span class="chronometer">00:00</span></p>
</div>
</div>
<div class="col-12">
<div class="d-flex justify-content-center">
<p>Best Time: <span class="highestScore">00:00</span></p>
</div>
</div>
</div>
</div>
<div class="game-over screen">
<div class="main-title row d-flex justify-content-center align-items-center">
<div class="col-12">
<div class="d-flex justify-content-center">
<h1>Game Over</h1>
</div>
</div>
<div class="col-12">
<div class="d-flex justify-content-center">
<p>Hey man You're Dead. </p>
<p>Please Refresh</p>
</div>
</div>
<div class="col-12">
<div class="d-flex justify-content-center">
<button class="btn btn-light restartButton">Restart</button>
</div>
</div>
<br>
<div class="col-12">
<p><a target=_blank href="https://github.com/adserasinghe">See More Projects</a></p>
</div>
</div>
</div>
<div id="gameContainer">
<div id="left-wall" class="obstacle" style="left: -100px; bottom: 0;"></div>
<div id="hero"></div>
<img src="https://drive.google.com/thumbnail?id=16xQ76yQgLy6N1Z0ERHa8I4Wluq2OGreF&sz=w1000" class="object sign">
<div class="trees">
<img src="https://drive.google.com/thumbnail?id=1SSZ8Gl9nSo96RhvWDNlxsaYSWUFQu6h4&sz=w1000" class="object tree silhouette">
<img src="https://drive.google.com/thumbnail?id=1LItLexgTPQ9Fno_TgPMJIZb0StcqxgD6&sz=w1000" class="object tree silhouette">
<img src="https://drive.google.com/thumbnail?id=1iQRUmpRWMGjesukrLxJXxQvkAehk_k8P&sz=w1000" class="object tree silhouette">
<img src="https://drive.google.com/thumbnail?id=1o-QjWIBLe95xX303qKG6zE1NitfCrgUT&sz=w2000" class="object tree silhouette">
<img src="https://drive.google.com/thumbnail?id=1o-QjWIBLe95xX303qKG6zE1NitfCrgUT&sz=w2000" class="object tree silhouette">
</div>
<div class="object house">
<div class="chimney">
<div class="smoke"></div>
<div class="smoke"></div>
<div class="smoke"></div>
<div class="smoke"></div>
<div class="smoke"></div>
<div class="smoke"></div>
<div class="smoke"></div>
</div>
</div>
<div class="hammers">
<div class="obstacle hammer" style="left: 1500px"></div>
<div class="obstacle hammer" style="left: 1600px"></div>
<div class="obstacle hammer" style="left: 1700px"></div>
<div class="obstacle hammer" style="left: 4000px"></div>
<div class="obstacle hammer" style="left: 4100px"></div>
<div class="obstacle hammer" style="left: 4200px"></div>
<div class="obstacle hammer" style="left: 4300px"></div>
<div class="obstacle hammer" style="left: 4400px"></div>
</div>
<div class="saws">
<div class="obstacle saw" style="left: 2600px; "></div>
<div class="obstacle saw" style="left: 5500px; "></div>
</div>
<div class="bushes">
<div class="bush silhouette" style="left: 3500px; bottom: 0;"></div>
<div class="bush silhouette" style="left: 5200px; bottom: 0;"></div>
<div class="bush silhouette" style="left: 6000px; bottom: 0;"></div>
<div class="bush silhouette" style="left: 6500px; bottom: 0;"></div>
<div class="bush silhouette" style="left: 6800px; bottom: 0;"></div>
</div>
<div class="birds">
<div class="obstacle bird" style="left: 700px; top: 40%;"></div>
<div class="obstacle bird" style="left: 500px; top: 50%;"></div>
<div class="obstacle bird" style="left: 100px; top: 60%;"></div>
<div class="obstacle bird" style="left: 200px; top: 75%;"></div>
</div>
<div id="finishLine" style="left: 10000px"></div>
<div class="floor" style="left: 0; bottom: 0;"></div>
<div id="top" style="left: 0; bottom: 0;"></div>
</div>
<div id="scores">
<p>Time: <span id="chronometer">00:00</span></p>
<p class="bestTime">Best Time: <span id="highestScore">00:00</span></p>
</div>
</body>
</body>
<script defer src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
<script defer src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script defer src="main.js"></script>
</html>