Jump to content

Is this a BUG?


FrankCheng
 Share

Recommended Posts

post-16303-0-15300300-1441606765.png

 

var game = new Phaser.Game(800, 600, Phaser.WEBGL, "example", { preload: preload, create: create });
 
    function preload() {
 
        game.load.image('sky', 'assets/skies/deepblue.png');
        game.load.image('dragonTexture', 'assets/creature/dragon.png');
        game.load.json('dragonMesh', 'assets/creature/dragon.json');
 
    }
 
    var dragon = null;
 
    function create() {
 
        game.add.image(0, 0, 'sky');
 
        dragon = game.add.creature(450, 350, 'dragonTexture', 'dragonMesh');
 
        dragon.scale.set(25.0);
        
        dragon.play(true); //  true = loop
 
    }
 
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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