mirror of
https://github.com/photonstorm/phaser
synced 2024-11-15 01:17:43 +00:00
28 lines
No EOL
484 B
PHP
28 lines
No EOL
484 B
PHP
<?php
|
|
$title = "Hello Arial";
|
|
require('../head.php');
|
|
?>
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
var game = new Phaser.Game(800, 600, Phaser.CANVAS, '', { create: create });
|
|
|
|
function create() {
|
|
|
|
var text = "- phaser -\nwith a sprinkle of\npixi dust";
|
|
var style = { font: "65px Arial", fill: "#ff0044", align: "center" };
|
|
|
|
var t = game.add.text(game.world.centerX, game.world.centerY, text, style);
|
|
t.anchor.setTo(0.5, 0.5);
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
|
|
<?php
|
|
require('../foot.php');
|
|
?>
|