mirror of
https://github.com/wassname/phaser.git
synced 2026-06-27 16:10:15 +08:00
933edb203f
Final commit, the wip/examples folder can be removed,
32 lines
573 B
PHP
32 lines
573 B
PHP
<?php
|
|
$title = "Random Data Generators";
|
|
require('../head.php');
|
|
?>
|
|
|
|
<script type="text/javascript">
|
|
|
|
(function () {
|
|
|
|
var game = new Phaser.Game(800, 600, Phaser.CANVAS, '', {create: create });
|
|
|
|
|
|
function create() {
|
|
|
|
game.stage.backgroundColor = '#454645';
|
|
|
|
var style = { font: "14px Arial", fill: "#ff0044", align: "center" };
|
|
|
|
game.add.text(10,20,game.rnd.integer());
|
|
game.add.text(10,40,game.rnd.frac());
|
|
game.add.text(10,60,game.rnd.real());
|
|
game.add.text(10,80,game.rnd.integerInRange(100,200));
|
|
|
|
}
|
|
|
|
})();
|
|
|
|
</script>
|
|
|
|
<?php
|
|
require('../foot.php');
|
|
?>
|