-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame.css
58 lines (53 loc) · 1.09 KB
/
game.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
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
body {
width: 100%;
overflow: hidden;
background: url("space.jpg");
background-size: cover;
}
#board {
position: relative;
width: 500px;
height: 500px;
margin: 40px auto;
border: 2px solid white;
background-color: black;
overflow: hidden;
transform: rotate(90deg);
}
#jet {
position: absolute;
width: 40px;
height: 60px;
background: url("spacecraft.png");
background-size: contain;
background-repeat: no-repeat;
left: 50%;
bottom: 0px;
}
.bullets {
position: absolute;
bottom: 40px;
left: 51%;
width: 20px;
height: 20px;
background: url("bullet.png");
background-size: contain;
background-repeat: no-repeat;
}
.rocks {
position: absolute;
right: 0px;
width: 50px;
height: 50px;
background: url("alien.png");
background-size: contain;
background-repeat: no-repeat;
}
#points {
position: absolute;
top: 0px;
margin: 40px;
opacity: 0.7;
font-size: 10em;
color: white;
}