-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgame.css
More file actions
97 lines (84 loc) · 1.46 KB
/
game.css
File metadata and controls
97 lines (84 loc) · 1.46 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
*{
box-sizing: border-box;
font-family: 'Press Start 2P', cursive;
}
#parentRect{
position: relative;
display: inline-block
}
#subRect{
position: absolute;
display: flex;
width: 100%;
align-items: center;
padding: 20px;
}
#timer{
background-color: #6e4c30;
width: 100px;
height: 75px;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
color: #f7f3b7;
border-radius: 10px;
border: 4px solid #4d3533;
font-size: 30px;
}
#endMenu{
position: absolute;
color: white;
align-items: center;
justify-content: center;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: none;
text-align: center;
}
#endLable{
font-size: 60px;
font-weight: bold;
text-shadow: 0 0 10px #4d3533;
}
canvas{
height: 99.47532vh;
width: 100vw;
}
.enemyHealthBar{
position: relative;
height: 25px;
width: 100%;
}
.playerHealthBar{
position: relative;
height: 25px;
width: 100%;
display: flex;
justify-content: flex-end;
}
#playerHealth{
position: absolute;
background: #ec273f;
top: 0;
right: 0;
bottom: 0;
width: 100%;
border-radius: 10px;
border: 6px solid #4d3533;
}
#enemyHealth{
position: absolute;
background: #ec273f;
top: 0;
right: 0;
bottom: 0;
left: 0;
border-radius: 10px;
border: 6px solid #4d3533;
}
#play_again, #main-menu{
width: 200px;
}