phaser/Docs/Hello Phaser/index.html

37 lines
486 B
HTML
Raw Normal View History

<!DOCTYPE HTML>
<html>
<head>
<title>phaser - hello world</title>
<script src="phaser-min.js"></script>
</head>
<body>
<script type="text/javascript">
(function () {
var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update });
function preload() {
game.load.image('logo', 'logo.png');
}
var logo;
function create() {
logo = game.add.sprite(0, 0, 'logo');
}
function update() {
}
})();
</script>
</body>
</html>