forked from BdR76/phaserlevelselect
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
24 lines (24 loc) · 675 Bytes
/
index.html
File metadata and controls
24 lines (24 loc) · 675 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Phaser level select test</title>
<style> body { margin: 0; background: #B4D9E7; } </style>
<script src="phaser-2.0.6.min.js"></script>
<script src="levelselect.js"></script>
<script src="maingame.js"></script>
</head>
<body>
<script>
(function() {
// initialize the framework
var game = new Phaser.Game(CANVAS_WIDTH, CANVAS_HEIGHT, Phaser.CANVAS, 'game');
// add game states
game.state.add('levsel', LevelSelect); // note: first parameter is only the name used to refer to the state
game.state.add('game', MainGame);
// start the boot state
game.state.start('levsel');
})();
</script>
</body>
</html>