-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
101 lines (88 loc) · 2.26 KB
/
index.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
<!DOCTYPE html>
<head>
<title>pixlemon</title>
<link rel="icon" href="/assets/images/title-logo.png" type="image/x-icon" />
</head>
<style>
body {
background-color: black;
margin: 0;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
}
#container {
background-image: url("./assets/images/menu-img.jpeg");
height: 100%;
width: 100%;
background-size: 100% 100%;
background-repeat: no-repeat;
background-position: center center;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: fixed;
}
/*#logo {
background-color: blue;
width: 200px;
height: 200px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 20px;
}
#logo img {
max-width: 100%;
max-height: 100%;
}*/
span {
display: inline-block;
transform: skew(21deg);
}
#startbtn button {
/* background-color: transparent;
color: white;
border: none;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease;*/
background: #fff;
border: none;
padding: 10px 20px;
display: inline-block;
font-size: 15px;
font-weight: 600;
width: 120px;
cursor: pointer;
transform: skew(-21deg);
}
span {
display: inline-block;
transform: skew(21deg);
}
#startbtn button:hover {
color: white;
background-color: black;
border: floralwhite solid 0.1px;
}
</style>
<body>
<audio id="introSong" src="./assets/audio/intro.wav" loop autoplay></audio>
<audio id="gameplaySong" src="./assets/audio/Mecha.wav" loop></audio>
<div id="container">
<div id="logo">
</div>
<div id="startbtn">
<button><span>Start</span></button>
</div>
</div>
</body>
<canvas></canvas>
<script src="./js/collisions.js"></script>
<script src="./js/battlezones.js"></script>
<script src="./js/main.js"></script>