mirror of
https://github.com/photonstorm/phaser
synced 2024-12-18 09:03:29 +00:00
37 lines
486 B
HTML
37 lines
486 B
HTML
|
<!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>
|