Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

Either a bug or I'm dumb ;)


Recommended Posts

Hey guys, 


I've been trying to use addTextureAtlas but, alas, I keep getting an error "Uncaught SyntaxError: Unexpected token < phaser.js:6928 "

Not sure if this is a bug in my code or in phaser. 


Here's my code. Thanks guys :)


(function () {    var myGame = new Phaser.Game(this, 'game', 800, 600, init, create, update);        function init() {        	myGame.loader.addTextureAtlas( 'linkSheet', 'assets/link-sheet.png', 'assets/link-sheet.xml' );    	myGame.loader.load();    }    var link;    function create() {    	link = myGame.createSprite( 50, 50, 'linkSheet' );    	link.animations.add('walk', ['link-walk-1.png','link-walk-2.png'], 10, true, false );    	link.animations.play('walk');    }    function update() {    }})();



Link to comment
Share on other sites


  • Recently Browsing   0 members

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