-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgame.css
More file actions
62 lines (52 loc) · 1.04 KB
/
game.css
File metadata and controls
62 lines (52 loc) · 1.04 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
body {
margin: 0;
font-family: Arial, sans-serif;
background-color: #000;
}
#gameArea {
overflow: hidden;
position: relative;
width: 100%;
height: 100vh;
background-image: url("img/images.png");
background-size: auto;
background-repeat: repeat;
animation: scrollBackground 10s linear infinite;
}
@keyframes scrollBackground {
from {
background-position: 0 0;
}
to {
background-position: -100% 0;
}
}
.meteor {
border-radius: 50%;
}
.spinning {
animation: spin 2s linear infinite;
}
@keyframes spin {
from {
transform: translate(-50%, -50%) rotate(0deg);
}
to {
transform: translate(-50%, -50%) rotate(360deg);
}
}
#message {
font-size: 50px;
text-align: center;
text-shadow: 0px 0px 10px rgb(166, 0, 255);
font-family: pixel;
}
#timer {
font-size: 30px;
text-shadow: 0px 0px 10px rgb(166, 0, 255);
font-family: pixel;
}
@font-face {
font-family: pixel;
src: url(img/Minecraft.ttf);
}