Text converted and a couple of examples created. Using new extend system, so much smaller classes now.

This commit is contained in:
Richard Davey
2013-09-03 06:02:47 +01:00
parent 5acb4e9f1b
commit 8a90a87492
9 changed files with 124 additions and 34 deletions
+31
View File
@@ -0,0 +1,31 @@
<!DOCTYPE HTML>
<html>
<head>
<title>phaser.js - a new beginning</title>
<?php
require('js.php');
?>
</head>
<body>
<script type="text/javascript">
(function () {
var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { create: create });
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>