-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSnakeGame.css
91 lines (82 loc) · 1.56 KB
/
SnakeGame.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
html {
height: 100vh;
width: 100vh;
}
body{
background-color: black;
padding: 0px;
margin: 0px;
min-height: 100%;
min-width: 100%;
overflow: hidden;
position:absolute; top:0; bottom:0; right:0; left:0;
}
.snake{
position: absolute;
/*background-color: green;*/
background-image: url('Images/snakeImg15.png');
background-size: cover;
/*transform: rotate(270deg);*/
height : 50px;
width: 50px;
z-index: 2;
/*-moz-box-shadow: 10px 10px 16px #000000;
-webkit-box-shadow: 10px 10px 16px #000000;
box-shadow: 10px 10px 16px #000000;*/
}
.headNode{
/*box-shadow: 0 0 10px white;*/
/*transform: rotate(90deg);*/
background-image: url('Images/snakeHeadImg02.png');
background-size: cover;
height : 50px;
width: 50px;
background-size: cover;
z-index: 3;
}
/*.score{
height: 75px;
width: 233px;
text-align: center;
padding-top: 10px;
background-color: white;
display: block;
}
*/
.fruit{
position: absolute;
/*background-color: red;*/
background-image: url('Images/fruit.png');
background-size: cover;
height: 50px;
width: 50px;
z-index: 1;
/*box-shadow: 0 0 10px white;*/
}
.wall{
position: absolute;
/*display: inline-block;*/
/*background-color: yellow;*/
background-image: url('Images/wallImg01.jpeg');
/*background-size: cover;*/
height: 47px;
width: 47px;
z-index: 1;
}
.gameOverImg{
background-size:cover;
display: block;
position: absolute;
width: 100%;
height: 100%;
z-index: 4;
}
.pressEnterImg{
background-size:cover;
display: block;
position: absolute;
left : 35%;
top : 35%;
/*vertical-align: center;*/
z-index: 4;
}