-
Notifications
You must be signed in to change notification settings - Fork 0
/
intro.html
126 lines (125 loc) · 2.64 KB
/
intro.html
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
125
126
<html>
<head>
<title>
space ship
</title>
<style type="text/css">
*{
margin: 0px;
padding:0px;
}
body
{
width:900px;
background-image: url("background1.png");
background-size: 100% 100%;
}
#gametitle
{
width:600px;
position:relative;
left:450px;
top:200px;
}
#gametitle h4
{
color:#F62A00;
text-align: center;
font-size:32px;
position: absolute;
left:100px;
letter-spacing:1px;
font-family: "Avant Garde", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-serif;
text-transform: uppercase;
text-rendering: optimizeLegibility;
}
#gametitle button
{
width:150px;
height:30px;
color:#2A3132;
position:absolute;
font-size:14px;
border-radius: 8px;
background-color:#1995AD;
}
#gametitle button:hover
{
color:#763626;
background-color:#2A3132;
}
#b1
{
top:40px;
left:90px;
}
#b2{
top:40px;
left:250px;
}
.icons{
width:50px;
height: 50px;
position: absolute;
top:20px;
background-image: url("player2.png");
background-size:100% 100%;
}
#ha2
{
left:450px;
}
/* #anim
{
position: relative;
}
#a1{
width:50px;
height:30px;
position:absolute;
background-image:url("aestroid1.png");
background-size: 100% 100%;
top:10px;
left:10px;
}
#a2{
width:50px;
height:30px;
position:absolute;
background-image:url("aestroid1.png");
background-size: 100% 100%;
top:300px;
left:200px;
}
#a3{
width:50px;
height:30px;
position:absolute;
background-image:url("aestroid1.png");
background-size: 100% 100%;
top:400px;
left:400px;
}*/
</style>
</head>
<body >
<div id="gametitle">
<h4>space invaders </h4>
<h5 class="icons" id="ha1"></h5>
<button id="b1" onclick="window.location.href='spaceship.html'">start game</button>
<button id="b2" onclick="exit()" >exit</button>
<h5 class="icons" id="ha2"></h5>
</div>
<div id="anim">
<h5 id="a1"></h5>
<h5 id="a2"></h5>
<h5 id="a3"></h5>
</div>
</body>
<script type="text/javascript">
function exit()
{
window.close();
}
</script>
</html>