-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.html
100 lines (91 loc) · 2.07 KB
/
Main.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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Space Game</title>
<link rel="icon" href="/icon.png">
<style media="screen">
@font-face {
font-family: "Commodore";
src: url("gameFont1.ttf");
}
@font-face {
font-family: "Commodore2";
src: url("gameFont2.ttf");
}
#title1{
text-align: center;
font-family:"Commodore";
color: white;
font-weight: normal;
}
#mainCanvas{
background-color: black;
width: 100%;
height: 400px;
border-radius: 0%;
}
#speech{
font-family: "Commodore2";
color: white;
text-align: left;
font-size: 17px;
}
#restart{
position: absolute;
left: 60%;
top: 5%;
font-size: 15px;
font-family: "Commodore2";
border-color: black;
background-color: black;
color: white;
}
#home{
position: absolute;
left: 35%;
top: 5%;
font-size: 15px;
font-family: "Commodore2";
border-color: black;
background-color: black;
color: white;
}
body{
background-color: black;
}
#body-div{
width: 700px;
height: 600px;
border: 5px solid white;
}
#back-button{
margin-top: 20px;
border: 5px solid white;
background-color: black;
color: white;
height: 50px;
width: 710px;
font-family: "Commodore2";
text-decoration: underline;
}
</style>
</head>
<body>
<center>
<div id="body-div">
<h1 id="title1">Space</h1>
<button type="button" name="button" id="restart" onclick="window.reload();">Retry</button>
<a href="./home.html"><button type="button" name="button" id="home" onclick="window.reload();">Home</button></a>
<canvas id="mainCanvas" width="100%" height="300"></canvas>
<p id="speech"></p>
</div>
</center>
<script src="jquery-3.4.1.min.js" charset="utf-8" defer></script>
<script src="AnyLevel.js" charset="utf-8" defer></script>
<script src="Functions.js" charset="utf-8" defer></script>
<script src="Controls.js" charset="utf-8" defer></script>
<script src="collision.js" charset="utf-8" defer></script>
<script src="MainScript.js" charset="utf-8" defer></script>
</body>
</html>