Sign in to follow this  
Followers 0
mdi

Problema no navegador Safari

1 post in this topic

Hi! I'm having this problem only in the Safari browser. 
Phaser does not work. 

Phaser.Loader - audio[hit]: error loading asset from URL null (no supported audio URL specified)
phaser.min.js:7Phaser.StateManager - No state found with the key: Game

In other browsers everything is fine. Here is the index code.

 

<!DOCTYPE html>

<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>Recicle Game</title>
    
    <script src="build/phaser.min.js"></script>
   

    <script type="text/javascript">
    BasicGame = {};
    var game;
    </script>

    <script src="build/Boot.js"></script>
    <script src="build/Preloader.js"></script>
    <script src="build/Game.js"></script>
  
</head>
<body>

<script type="text/javascript">
(function () {

  game = new Phaser.Game(1000, 600, Phaser.CANVAS, '');


  game.state.add('Boot', BasicGame.Boot);
  game.state.add('Preloader', BasicGame.Preloader);
  game.state.add('Game', BasicGame.Game);

  game.state.start('Boot');

})();
</script>
  
    
</body>
</html>

 

 

What can it be?

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.