-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.php
58 lines (53 loc) · 1.67 KB
/
index.php
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
<?php
require_once 'php/app.inc.php';
App::init();
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<style>
#display-wrap {
position: relative;
width: 640px;
height: 480px;
margin-left: -320px;
left: 50%;
}
#display, #display-scanline {
position: absolute;
left: 0;
top: 0;
background: #000;
width: 640px;
height: 480px;
}
#display-scanline {
background: url(assets/scanline.png);
}
</style>
</head>
<body>
<div id="display-wrap">
<canvas id="display" width="320" height="240">
</canvas>
<div id="display-scanline"></div>
</div>
<div id="frame-time"></div>
<div id="fps"></div>
<div id="log"></div>
<div id="assets" style="display: none">
<img id="wall" src="assets/wall.png" alt="" />
<img id="door" src="assets/door.png" alt="" />
<img id="bush" src="assets/bush.png" alt="" />
<img id="stone" src="assets/stone.png" alt=""/>
<img id="sta" src="assets/sta.png" alt=""/>
<img id="zombie" src="assets/zombie.png" alt=""/>
<img id="hud-pistol" src="assets/pistol.png" alt=""/>
</div>
<?php
App::includeCoreScript('js/game/game.js');
?>
</body>
</html>