-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
129 lines (115 loc) · 2.21 KB
/
style.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
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
#gameContainer {
position: absolute;
width: 520px;
height: 520px;
background-color: #000000;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
#elementsContainer {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
/**
left bar
*/
#sidebar {
position: absolute;
top: 0;
right: 520px;
width: 180px;
height: 480px;
background-color: #ccc;
padding: 20px;
text-align: center;
}
/**
right bar for second player
*/
#sidebarSecond {
position: absolute;
top: 0;
right: -220px;
width: 180px;
height: 480px;
background-color: #ccc;
padding: 20px;
text-align: center;
}
.heart {
width: 50px;
height: 50px;
background-image: url(images/heart.png);
background-size: 50px 50px;
position: absolute;
}
.heatHeart {
width: 50px;
height: 50px;
background-image: url(images/heatHeart.png);
background-size: 50px 50px;
position: absolute;
}
#tank {
width: 40px;
height: 40px;
background-image: url(images/tankImage.png);
background-size: cover;
background-position: center;
background-repeat: no-repeat;
position: absolute;
top: 480px;
left: 160px;
}
#tankSecond {
width: 40px;
height: 40px;
background-image: url(images/tankImage2.png);
background-size: cover;
background-position: center;
background-repeat: no-repeat;
position: absolute;
top: 0px;
left: 320px;
transform: rotate(180deg);
}
.bulletTop {
width: 5px;
height: 10px;
background-color: #0f0;
position: absolute;
}
.bulletLeft {
width: 10px;
height: 5px;
background-color: #0f0;
position: absolute;
}
.obstacle2 {
width: 39px;
height: 39px;
background-image: url(images/block2.png);
background-size: 40px 40px;
position: absolute;
}
.water.obstacle2 {
width: 40px;
height: 40px;
background-image: url(images/blockWater.jpg);
background-size: 40px 40px;
position: absolute;
}
.breakable.obstacle2 {
width: 39px;
height: 39px;
background-image: url(images/block.png);
background-size: 40px 40px;
position: absolute;
}
#gameCanvas {
border: 1px solid #ffffff;
}