Gregniuki commited on
Commit
a398ce5
·
verified ·
1 Parent(s): ab20260

Create style.css

Browse files
Files changed (1) hide show
  1. style.css +35 -0
style.css ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ body {
2
+ margin: 0;
3
+ overflow: hidden;
4
+ background-color: black;
5
+ }
6
+
7
+ #game-area {
8
+ position: relative;
9
+ width: 100vw;
10
+ height: 100vh;
11
+ }
12
+
13
+ #player {
14
+ position: absolute;
15
+ bottom: 20px;
16
+ left: 50%;
17
+ transform: translateX(-50%);
18
+ width: 50px;
19
+ height: 30px;
20
+ background-color: green;
21
+ }
22
+
23
+ .invader {
24
+ position: absolute;
25
+ width: 40px;
26
+ height: 40px;
27
+ background-color: red;
28
+ }
29
+
30
+ .bullet {
31
+ position: absolute;
32
+ width: 5px;
33
+ height: 15px;
34
+ background-color: yellow;
35
+ }