-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
56 lines (51 loc) · 1.06 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Endless Runner</title>
<style>
body {
margin: 0;
overflow: hidden;
background-color: #87CEEB;
}
.game-container {
position: relative;
width: 100vw;
height: 100vh;
background-color: #87CEEB;
overflow: hidden;
}
#player {
position: absolute;
bottom: 10px;
left: 50px;
width: 40px;
height: 40px;
background-color: #4CAF50;
border-radius: 5px;
}
.obstacle {
position: absolute;
background-color: #FF6347;
width: 30px;
height: 30px;
}
#score {
position: absolute;
top: 10px;
left: 10px;
font-size: 24px;
color: white;
}
</style>
</head>
<body>
<div class="game-container">
<div id="player"></div>
<div id="score">Score: 0</div>
</div>
<script src="script.js"></script>
</body>
</html>