forked from TirthPatel06/NinjaHattori
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
124 lines (116 loc) · 2.35 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
@import url('https://fonts.googleapis.com/css2?family=Lobster&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Alata&display=swap');
*{
margin: 0;
padding:0;
}
body{
/*background-color: red;*/
overflow: hidden;
}
.gameContainer{
background-image:linear-gradient(rgba(0,0,0,0.2),rgba(0,0,0,0.2)), url(nhome.jpg);
background-repeat: no-repeat;
text-shadow: 2px 2px cyan;
color: red;
letter-spacing: 2px;
word-spacing: 3px;
background-size: 100vw 100vh;
width: 100%;
height: 100vh;
}
.gameOvery{
visibility: hidden;
text-align: center;
font-family: 'Alata', sans-serif;
background-color: black;
margin-top: 15vw;
font-size: 3rem;
/*box-shadow: 5px 5px 5px 5px red;*/
/*text-shadow: 2px 2px 5px red;*/
width: 50vw;
border-radius: 10px;
border:5px dotted brown;
position: absolute;
margin-left: 320px;
color: transparent;
padding: 15px 30px;
}
.ninja{
background-image: url(hattory.png);
background-repeat: no-repeat;
background-size: 100% 100%;
width: 250px;
height: 215px;
position: absolute;
/*bottom:0;*/
margin-top: 29vw;
left: 52px;
}
.obstacle{
width: 150px;
height: 115px;
background-image: url(kiyo.png);
background-size: 100% 100%;
position: absolute;
/*bottom: 0;*/
margin-top: 35vw;
left: 99vw;
}
.animateDino{
animation: dino 0.6s ease-out;
}
.obstacleAni{
animation: obstacleAni 5s linear infinite;
}
.gameOver{
position: relative;
background-color: black;
top:20px;
margin: auto;
opacity: 0.8;
width:55vw;
border-radius: 9px;
border:3px solid white;
padding: 15px 10px;
font-size: 40px;
text-align: center;
/*font-family: 'Ubuntu', sans-serif;*/
/*font-family: 'Londrina Solid', cursive;*/
font-family: 'Lobster', cursive;
}
#scoreCont{
font-size: 25px;
color: #54212f;
font-weight: bold;
position: absolute;
margin: 25PX 535PX;
border: 2px solid black;
background-color: white;
opacity: 0.6;
padding: 10px;
font-family: 'Ubuntu', sans-serif;
border-radius: 10px;
}
@keyframes dino{
0%{
bottom: 0;
}
50%{
bottom: 422px;
}
60%{
bottom: 422px;
}
100%{
bottom: 0;
}
}
@keyframes obstacleAni{
0%{
left: 100vw;
}
100%{
left: -10vw;
}
}