-
Notifications
You must be signed in to change notification settings - Fork 163
/
Copy pathstyle.css
114 lines (110 loc) · 2.25 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
/*CSS Reset*/
*{
margin:0px;
padding:0px;
}
body{
/*Hides the bottom scrollbar*/
overflow: hidden;
}
/*Styling of the Game's Name*/
#gameName{
position: absolute;
left: 24vw;
background-color: white;
font-weight: bold;
font-size: 4rem;
}
/*Background image styling*/
.container{
background-image: url(https://github.com/GameSphere-MultiPlayer/GameSphere/assets/56786344/9ecbe8c6-e1f1-4854-b8e8-8c65c496e861);
background-size:cover;
width:100vw;
height:100vh;
}
.design {
position:absolute;
top: 109px;
right: 57px;
background-color: black;
padding: 10px;
border-radius: 20px;
color: white;
font-weight: bold;
}
/*ScoreCard Styling*/
#scorecount{
position:absolute;
top:20px;
right:20px;
background-color: black;
padding: 28px;
border-radius: 20px;
color: white;
}
/*Obstacle image styling and postioning*/
.obstacle{
background-image: url(https://github.com/GameSphere-MultiPlayer/GameSphere/assets/56786344/1fd0cb41-69b9-4bcb-8f68-e35c427005e0);
background-size: cover;
width:154px;
height: 117px;
position:absolute;
bottom:0px;
right:120px;
}
/*Applying aniamation to the obstacle so that it can move towards left*/
.animateobstacle{
animation: aniob 5s linear infinite;
}
@keyframes aniob{
0%{
left:100vw;
}
100%{
left:-10vw;
}
}
/*Dragon's styling*/
.dragon{
background-image: url(https://github.com/GameSphere-MultiPlayer/GameSphere/assets/56786344/ce1b5f73-9cb6-4018-b77c-2c713543ca53);
background-size: cover;
width: 194px;
height: 101px;
position:absolute;
bottom:0px;
left:90px;
}
/*Applying animation to the dragon so that it can save himself by jumping up*/
.animatedragon{
animation: ani 1s linear;
}
@keyframes ani{
0%{
bottom:0px;
}
25%{
bottom:150px;
}
50%{
bottom:300px;
}
75%{
bottom:211px;
}
100%{
bottom:0px;
}
}
/*gameover styling and positioning*/
.gameover{
visibility: hidden;
font-family: 'Ubuntu', sans-serif;
position:absolute;
top:50vh;
left:35vw;
color:red;
font-weight:bold;
font-size: 6rem;
background-color: firebrick;
border-radius: 20px;
}