<!DOCTYPE html>
<html>

<head>

	<meta charset="utf-8">

	<title>YINS</title>

	<link rel="stylesheet" type="text/css" href="css/reset.css">

</head>

<body>

	<div id="game"></div>

<!--
   - The Phaser library,
   - required for everything game related 
   -->
<script src="lib/phaser.js"></script>

<!--
   - Import files representing the different states
   -->
<script src="js/boot.js"></script>

<!--
   - Set page specific variables
   - and start boot state
   -->
<script>
	
	YINS.gameWidth = window.innerWidth;
	YINS.gameHeight = window.innerHeight;

	YINS.Boot();

</script>

</body>

</html>
<!DOCTYPE html>
<html>

<head>

	<meta charset="utf-8">

	<title>YINS</title>

	<link rel="stylesheet" type="text/css" href="css/reset.css">

</head>

<body>

	<div id="game"></div>

<!--
   - The Phaser library,
   - required for everything game related 
   -->
<script src="lib/phaser.js"></script>

<!--
   - Import files representing the different states
   -->
<script src="js/boot.js"></script>
<script src="js/preloader.js"></script>

<!--
   - Add states and create game object
   -->
<script>
	
	YINS.gameWidth = window.innerWidth;
	YINS.gameHeight = window.innerHeight;

	/* Declare the game object */
	YINS.game = new Phaser.Game(YINS.gameWidth, YINS.gameHeight, Phaser.CANVAS, 'game');

	/* Add the states to the game
	   This can be done in Boot.js */
	YINS.game.state.add('boot', YINS.Boot);
	YINS.game.state.add('preloader', YINS.Preloader);
	YINS.game.state.add('mainMenu', YINS.MainMenu);
	YINS.game.state.add('game', YINS.Game);

	/* Starts the boot state */
	YINS.game.state.start('boot');

</script>

</body>

</html>
Declare game states & import preloader.js
Declare game states & import preloader.js
