forked from ultrabolido/PrinceJS
-
Notifications
You must be signed in to change notification settings - Fork 73
/
Copy pathindex.html
78 lines (78 loc) · 3.54 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
<!doctype html>
<html lang="en">
<head>
<title>PrinceJS</title>
<meta charset="UTF-8" />
<meta
name="description"
content="Prince of Persia reimplementation written in HTML5 / JavaScript (MS-DOS version)"
/>
<meta
name="viewport"
content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=0.0, viewport-fit=cover"
/>
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-title" content="PrinceJS" />
<meta name="application-name" content="PrinceJS" data-source="https://github.com/oklemenz/PrinceJS" />
<link rel="icon" type="image/png" href="assets/web/favicon.png" />
<link rel="shortcut icon" type="image/png" href="assets/web/touch-icon-152.png" />
<link rel="apple-touch-icon" href="assets/web/touch-icon-152.png" />
<link rel="apple-touch-icon" sizes="152x152" href="assets/web/touch-icon-152.png" />
<link rel="apple-touch-icon" sizes="180x180" href="assets/web/touch-icon-180.png" />
<link rel="manifest" href="site.webmanifest" />
<link type="text/css" rel="stylesheet" href="assets/web/game.css" />
<script type="text/javascript">
console.log("%cSource: https://github.com/oklemenz/PrinceJS", "color: blue; font-size:20px; font-weight: bold;");
</script>
<script src="lib/phaser.min.js"></script>
<script src="src/Boot.js"></script>
<script src="src/Preloader.js"></script>
<script src="src/Game.js"></script>
<script src="src/Utils.js"></script>
<script src="src/Title.js"></script>
<script src="src/EndTitle.js"></script>
<script src="src/Credits.js"></script>
<script src="src/Cutscene.js"></script>
<script src="src/Scene.js"></script>
<script src="src/Level.js"></script>
<script src="src/LevelBuilder.js"></script>
<script src="src/Actor.js"></script>
<script src="src/Fighter.js"></script>
<script src="src/Enemy.js"></script>
<script src="src/Kid.js"></script>
<script src="src/Mouse.js"></script>
<script src="src/Interface.js"></script>
<script src="src/tiles/Base.js"></script>
<script src="src/tiles/Button.js"></script>
<script src="src/tiles/Chopper.js"></script>
<script src="src/tiles/Clock.js"></script>
<script src="src/tiles/ExitDoor.js"></script>
<script src="src/tiles/Gate.js"></script>
<script src="src/tiles/Loose.js"></script>
<script src="src/tiles/Mirror.js"></script>
<script src="src/tiles/Potion.js"></script>
<script src="src/tiles/Skeleton.js"></script>
<script src="src/tiles/Spikes.js"></script>
<script src="src/tiles/Star.js"></script>
<script src="src/tiles/Sword.js"></script>
<script src="src/tiles/Torch.js"></script>
</head>
<body oncontextmenu="return false;">
<div class="game" id="gameContainer"></div>
<script type="text/javascript">
window.onload = () => {
let game = new Phaser.Game(640, 400, Phaser.AUTO, "gameContainer", null, false, false);
game.state.add("Boot", PrinceJS.Boot);
game.state.add("Preloader", PrinceJS.Preloader);
game.state.add("Game", PrinceJS.Game);
game.state.add("Title", PrinceJS.Title);
game.state.add("EndTitle", PrinceJS.EndTitle);
game.state.add("Credits", PrinceJS.Credits);
game.state.add("Cutscene", PrinceJS.Cutscene);
game.state.start("Boot");
};
</script>
</body>
</html>