-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgame.css
More file actions
103 lines (87 loc) · 2.02 KB
/
game.css
File metadata and controls
103 lines (87 loc) · 2.02 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
body,html{
height: 100%;
display: block;
}
body.game-body {
overflow: hidden;
position: relative;
}
.game-container {
width: 100%;
height: 100%;
background-color: #c2f3ff;
position: relative;
}
.game-track{
background-color: #3e404a;
background-image:
-webkit-linear-gradient(rgba(255,255,255,.00) 2px, transparent 2px),
linear-gradient(90deg, rgba(255,255,255,.04) 2px, transparent 2px),
linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px),
linear-gradient(0deg, rgba(0,0,0,.3) 0, transparent 100px);
/* background-color: #3e404a; */
width: 300px;
margin: 0 auto;
height: 100%;
position: absolute;
top: 0;
left: 50%;
/* border: 5px dashed rgba(0, 0, 255, 0.37); */
border-top: 0;
margin-left: -150px;
border-bottom: 0;
background-size: 100px 100px, 60px 100px, 20px 20px, 20px 20px, 100% 100%;
background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px, center bottom;
}
.vehicle {
height: 50px;
width: 50px;
background-color: #1c94c4;
position: absolute;
left: 50%;
top: 50%;
}
.game-car{
width: 64px;
height: 64px;
position: absolute;
bottom: 20px;
left: 50%;
margin-left: -32px;
/* border: 1px solid black; */
/* background: red; */
background-image: url(car.png);
}
.game-car.villan {
-webkit-filter: grayscale(100%);
}
.game-car.tl{
background-position: -63px -74px;
}
.game-car.t{
background-position: -80px -12px;
width: 32px;
margin-left: -16px;
}
.game-car.tr{
background-position: -3px -74px;
}
.game-car.b{
background-position: -80px -12px;
}
.game-car.bl{
background-position: -80px -12px;
}
.game-car.br{
background-position: -80px -12px;
}
.game-car.r{
background-position: -80px -12px;
}
.game-car.l{
background-position: -80px -12px;
}
.game-car.t.villan{
margin-left:-1px;
}