-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
103 lines (94 loc) · 2.9 KB
/
Copy pathindex.html
File metadata and controls
103 lines (94 loc) · 2.9 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Super Mario</title>
<link rel = "icon" href = "./assets/icon.png" type = "image/x-icon">
<style>
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
html{
height: 100%;
min-height: 100%;
box-sizing: border-box;
overflow-x: hidden;
overflow-y: hidden;
}
body{
width: 100%;
height: 100%;
margin: 0;
padding: 0;
background-color: #645f89;
font-family: 'Press Start 2P', cursive;
font-size: 0.8em;
}
#controls{
width: 100%;
height: 50%;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
.arrowKey{
padding: 20px;
background-color: white;
border: 5px solid black;
text-align: center;
font-weight: 800;
}
.controlsBckg{
padding: 10px 50px 10px 50px;
background-color: white;
border: 5px solid black;
}
.spaceKey{
text-align: center;
background-color: white;
border: 5px solid black;
padding: 20px 35px 20px 35px;
margin: 20px;
}
.links{
position: absolute;
display: flex;
top: 90%;
left: 78%;
justify-content: space-between;
align-items: center;
}
.links img{
width: 60px;
}
</style>
</head>
<body>
<script type='text/javascript' src="./scripts/phaser.js"></script>
<script type="module" type='text/javascript' src='./scripts/main.js'></script>
<div id='game'></div>
<div id="controls">
<div class="controlsBckg">
<p>CONTROLS:</p>
<table>
<tr>
<td> </td>
<td id='up' class="arrowKey">↑</td>
</tr>
<tr>
<td id='left' class="arrowKey"><</td>
<td id='down' class="arrowKey">↓</td>
<td id='right' class="arrowKey">></td>
</tr>
</table>
<div id='space' class="spaceKey">SPACE</div>
</div>
<div class="links">
<p>Made by Filip Chodura</p>
<a href="https://github.com/Dimertuper/HTMLMario"><img src="./miscellaneous/gitHubLogo.png" alt="GitLogo"></a>
</div>
</div>
<script type="module" type='text/javascript' src='./scripts/controls.js'></script>
</body>
</html>