sancthuz Posted March 24, 2014 Share Posted March 24, 2014 Hello, I wrote down my first code with Phaser. but whe I tried to load an image.. a green squared apper o.o here \/ http://www.terebusca.com.br/yuleong/ and here is my javascript var yulSprite;var game = new Phaser.Game( 800,600, Phaser.AUTO, '', { preload: preload, create: create, update: update });function preload(){ game.load.image('yul', 'yul.png');}function create(){ yulSprite = game.add.sprite(game.world.centerX, 0,'yul');}function update(){} what I need to do? o.o it's seams to be right, cause I see a lot of guys with the same code. plz help me Link to comment Share on other sites More sharing options...
rich Posted March 24, 2014 Share Posted March 24, 2014 Do you actually have an image called yul.png in the same folder as your game? The green square means it couldn't load it basically. Link to comment Share on other sites More sharing options...
sancthuz Posted March 25, 2014 Author Share Posted March 25, 2014 (edited) yes I do :C ------------------edit-------- OMG I though it's like css and html stuff.. I think it's start the path from the "JS" folder.. o.o but it's on the root where html is Edited March 25, 2014 by sancthuz Link to comment Share on other sites More sharing options...
rich Posted March 25, 2014 Share Posted March 25, 2014 Your web site begs to differ: Link to comment Share on other sites More sharing options...
Recommended Posts