2013-09-03 05:02:47 +00:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>phaser.js - a new beginning</title>
|
|
|
|
<?php
|
|
|
|
require('js.php');
|
|
|
|
?>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
(function () {
|
|
|
|
|
2013-09-13 04:44:04 +00:00
|
|
|
var game = new Phaser.Game(800, 600, Phaser.CANVAS, '', { create: create });
|
2013-09-03 05:02:47 +00:00
|
|
|
|
|
|
|
function create() {
|
|
|
|
|
|
|
|
var text = "- phaser -\nwith a sprinkle of\npixi dust";
|
|
|
|
var style = { font: "65px Arial", fill: "#ff0044", align: "center" };
|
|
|
|
|
|
|
|
game.add.text(game.world.centerX, game.world.centerY, text, style).anchor.setTo(0.5, 0.5);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})();
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|