-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
34 lines (27 loc) · 1.01 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
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8" />
<title>Phaser + Ink Demo</title>
<script src="src/phaser.js"></script>
<script src="src/Boot.js"></script>
<script src="src/Preloader.js"></script>
<script src="src/Game.js"></script>
<script src="ink/ink.js"></script>
<link rel="stylesheet" type="text/css" href="main.css">
</head>
<body>
<div id="gameContainer"></div>
<p class="info">This is a demo that combines <a href="https://github.com/inkle/ink" target="_blank">ink</a> and <a href="http://phaser.io/" target="_blank">phaser</a>. View the source code <a href="https://github.com/lizgw/phaser-ink-demo">here</a>. Refresh the page to restart the demo.</p>
<script type="text/javascript">
window.onload = function() {
var game = new Phaser.Game(640, 480, Phaser.AUTO, 'gameContainer');
game.state.add('Boot', Demo.Boot);
game.state.add('Preloader', Demo.Preloader);
game.state.add('Game', Demo.Game);
// Now start the Boot state.
game.state.start('Boot');
};
</script>
</body>
</html>