Dunken Posted March 10, 2014 Share Posted March 10, 2014 Hi I just got started with Phaser. Unfortunately I'm already stuck at the very first tutorial. The zip file I downloaded doesn't contain a hellophaser folder... Do I miss something? Thanks! Link to comment Share on other sites More sharing options...
rich Posted March 11, 2014 Share Posted March 11, 2014 What does the zip file you downloaded contain? Link to comment Share on other sites More sharing options...
Telash Posted March 11, 2014 Share Posted March 11, 2014 <!doctype html> <html> <head> <meta charset="UTF-8" /> <title>hello phaser!</title> <script src="phaser.min.js"></script> </head> <body> <script type="text/javascript"> window.onload = function() { var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create }); function preload () { game.load.image('logo', 'phaser.png'); } function create () { var logo = game.add.sprite(game.world.centerX, game.world.centerY, 'logo'); logo.anchor.setTo(0.5, 0.5); } }; </script> </body> </html> Link to comment Share on other sites More sharing options...
Dunken Posted March 15, 2014 Author Share Posted March 15, 2014 index.html, phaser.min.js and phaser.png... I'm still confused... Link to comment Share on other sites More sharing options...
Recommended Posts