Added phaser build and hellophaser sample
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<!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>
|
||||
12
resources/tutorials/01 Getting Started/hellophaser/phaser.min.js
vendored
Normal file
12
resources/tutorials/01 Getting Started/hellophaser/phaser.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
resources/tutorials/01 Getting Started/hellophaser/phaser.png
Normal file
BIN
resources/tutorials/01 Getting Started/hellophaser/phaser.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 176 KiB |
Reference in New Issue
Block a user