Repository navigation
Expand file tree
/
Copy pathblock-jumper.css
More file actions
182 lines (157 loc) · 3.28 KB
/
Copy pathblock-jumper.css
File metadata and controls
182 lines (157 loc) · 3.28 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
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
background: linear-gradient(to bottom, #87CEEB 0%, #98D8E8 50%, #B0E0E6 100%);
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
overflow: hidden;
}
.game-container {
position: relative;
background: #000;
border: 5px solid #333;
border-radius: 10px;
box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}
#gameCanvas {
display: block;
background: linear-gradient(to bottom, #87CEEB 0%, #98D8E8 100%);
}
.game-header {
background: #333;
color: #fff;
padding: 10px 20px;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 18px;
font-weight: bold;
}
.score-board {
display: flex;
gap: 30px;
}
.score-board span {
color: #FFD700;
}
.controls-info {
font-size: 14px;
color: #ccc;
}
.level-progress-container {
width: 100%;
height: 12px;
background: #222;
border-bottom: 2px solid #444;
overflow: hidden;
}
.level-progress-bar {
height: 100%;
width: 0%;
background: linear-gradient(90deg, #228B22, #32CD32);
border-radius: 0 4px 4px 0;
transition: width 0.15s ease-out;
}
.game-over,
.start-screen {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(0, 0, 0, 0.9);
color: #fff;
padding: 40px;
border-radius: 10px;
text-align: center;
z-index: 100;
border: 3px solid #FFD700;
}
.start-screen {
display: block;
}
.game-over.hidden,
.start-screen.hidden {
display: none;
}
.game-over h2,
.start-screen h1 {
font-size: 36px;
margin-bottom: 20px;
color: #FFD700;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.character-select {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 12px;
margin: 18px 0;
}
.character-select > span:first-child {
margin-right: 4px;
}
.character-select button {
margin: 0;
padding: 8px 14px;
font-size: 16px;
}
.character-name {
min-width: 120px;
font-weight: bold;
color: #FFD700;
}
.character-preview {
width: 100%;
height: 48px;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
}
.character-preview .char-box {
width: 32px;
height: 40px;
border-radius: 4px;
border: 2px solid rgba(255, 255, 255, 0.5);
}
.character-preview .char-box.selected {
border-color: #FFD700;
box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}
.game-over p,
.start-screen p {
font-size: 18px;
margin: 10px 0;
}
#finalScore {
color: #FFD700;
font-size: 24px;
font-weight: bold;
}
button {
margin-top: 20px;
padding: 12px 30px;
font-size: 18px;
background: #FFD700;
color: #000;
border: none;
border-radius: 5px;
cursor: pointer;
font-weight: bold;
transition: all 0.3s;
}
button:hover {
background: #FFA500;
transform: scale(1.05);
box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}
button:active {
transform: scale(0.95);
}