-
Notifications
You must be signed in to change notification settings - Fork 163
/
Copy pathindex.html
73 lines (70 loc) · 1.86 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Space Shooter</title>
</head>
<style>
body {
width: 100%;
overflow: hidden;
background: url("https://github.com/GameSphere-MultiPlayer/GameSphere/assets/56786344/f4cd45e2-6de1-47aa-9169-dd223baafb30");
background-size: cover;
}
#board {
position: relative;
width: 500px;
height: 500px;
margin: 40px auto;
border: 2px solid white;
background-color: black;
overflow: hidden;
}
#jet {
position: absolute;
width: 40px;
height: 40px;
background: url("https://github.com/GameSphere-MultiPlayer/GameSphere/assets/56786344/53cde5aa-26b8-4445-8612-c5faebebcf0b");
background-size: contain;
background-repeat: no-repeat;
left: 50%;
bottom: 0px;
}
.bullets {
position: absolute;
bottom: 40px;
left: 51%;
width: 20px;
height: 20px;
background: url("https://github.com/GameSphere-MultiPlayer/GameSphere/assets/56786344/f94e86bf-a6cd-44cc-b961-6335a55d20d4");
background-size: contain;
background-repeat: no-repeat;
}
.rocks {
position: absolute;
top: 0px;
width: 50px;
height: 50px;
background: url("https://github.com/GameSphere-MultiPlayer/GameSphere/assets/56786344/f2c120ab-125a-47e5-bbb3-eccf63d07c33");
background-size: contain;
background-repeat: no-repeat;
}
#points {
position: absolute;
top: 0px;
margin: 40px;
opacity: 0.7;
font-size: 10em;
color: white;
}
</style>
<script src="app.js" defer></script>
<body>
<div id="board">
<div class="rocks"></div>
<div id="jet"></div>
</div>
<div id="points">0</div>
</body>
</html>