Jump to content

Newbie: hellophaser folder missing in tutorial


Dunken
 Share

Recommended Posts

<!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

 Share

  • Recently Browsing   0 members

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