Jump to content

i have a issue


whoami
 Share

Recommended Posts

<!DOCTYPE html>
<html>
<head>
    <title></title>
    <script src="//cdn.jsdelivr.net/phaser/2.6.2/phaser.js"></script>
</head>
<body>
<script>
var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update });
   function preload(){
    game.load.image('loading','assets/preloader.gif');
   }
   function create(){
   var preloadSprite=game.add.sprite(0,0,'loading');
     game.load.setPreloadSprite(preloadSprite);
   }
   function update(){}
</script>
</body>
</html>

why setPreloadSprite doesn't work

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...