-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
79 lines (71 loc) · 2.11 KB
/
Copy pathindex.php
File metadata and controls
79 lines (71 loc) · 2.11 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
<!DOCTYPE html>
<html>
<head>
<title>TopDownGameEngine</title>
<style type="text/css">
@font-face {
font-family: 'Press Start 2P';
src: url('Resources/Fonts/PressStart2P.ttf');
font-weight: normal;
}
h1 {
color: white;
position: absolute;
font-family: "Press Start 2P";
}
html, body {
margin: 0;
padding: 0;
/*overflow: hidden;*/
-webkit-user-select: none; /* webkit (safari, chrome) browsers */
-moz-user-select: none; /* mozilla browsers */
-khtml-user-select: none; /* webkit (konqueror) browsers */
-ms-user-select: none; /* IE10+ */
}
body {
font-family: "Segoe UI", sans-serif, serif;
background-color: #000000;
}
#loader {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: black;
}
#IntroVideo {
position: absolute;
width: 0;
height: 0;
}
#GameContainer {
width: 800px;
height: 600px;
outline: thick solid #FFFFFF;
position: absolute;
top: calc(50% - 300px);
left: calc(50% - 400px);
}
</style>
<script type="text/javascript" src="map.js"></script>
<script type="text/javascript">
<?php if (isset($_GET["debug"]) && $_GET["debug"]) : ?>
window.debug = true;
<?php endif; ?>
</script>
<script type="text/javascript" src="script/gamecore.js?v=<?= filemtime("script/gamecore.js"); ?>"></script>
<script type="text/javascript">
window.onload = () => {
var container = document.getElementById("GameContainer");
var game = new Zaggoware.OnePiece.Game(container);
game.start();
};
</script>
</head>
<body>
<h1>Test</h1>
<h2>ONE P<span>I</span>ECE</h1>
<div id="GameContainer"></div>
</body>
</html>