Ошибка
Shuter.html:15 Uncaught TypeError: Cannot read property 'add' of undefined
Кто нибуть сталкивался с подобной проблемой?
Phaser.min.js подключил.
Вот код:
<HTML>
<head>
<title> Shuter CS </title>
<script type="text/javascript" src="js/phaser.min.js"> </script>
<script type="text/javascript" src="js/Boot.js"> </script>
<script type="text/javascript" src="js/Preload.js"> </script>
<script type="text/javascript" src="js/Main.js"> </script>
<link href="css/main.css" rel="stylesheet">
</head>
<body>
<script>
(function(){
var game = new Phaser.Game(800, 600, Phaser.CANVAS,'');
game.state.add("Boot", Boot);
game.state.add("Preload", Preload);
game.state.add("Main", Main);
game.state.start("Boot");
})();
</script>
</body>
</HTML>



