-
Notifications
You must be signed in to change notification settings - Fork 0
/
play.html
34 lines (27 loc) · 901 Bytes
/
play.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 lang="fr">
<head>
<meta charset="UTF-8">
<title>Title</title>
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div id="game-container"></div>
<script src="js/phaser.min.js"></script>
<script src="js/state/Boot/Boot.js"></script>
<script src="js/state/GameTitle/GameTitle.js"></script>
<script src="js/state/GamePlay/GamePlay.js"></script>
<script>
var debug = false;
var width = Math.round(window.innerWidth)
var height = Math.round(window.innerHeight)
var lePlusPetit = Math.min(width, height)
var game = new Phaser.Game(lePlusPetit, lePlusPetit, Phaser.AUTO, 'game-container');
game.state.add("Boot", Boot);
game.state.add("GameTitle", GameTitle);
game.state.add("GamePlay", GamePlay);
game.state.start("Boot", true, true);
</script>
</body>
</html>