Final Commit of the day,

Final commit, the wip/examples folder can be removed,
This commit is contained in:
Webeled
2013-09-30 19:13:01 +01:00
parent bdc8edea9d
commit 933edb203f
6 changed files with 201 additions and 2 deletions
-1
View File
@@ -18,7 +18,6 @@
// Add some values to the query string
game.debug.renderText('Query string with new values : '+game.net.updateQueryString('atari', '520'),game.world.centerX-400,80);
game.debug.renderText('Query string with new values : '+game.net.updateQueryString('amiga', '1200'),game.world.centerX-400,100);
game.debug.renderText('Query string with new values : '+game.net.updateQueryString('commodore', '64'),game.world.centerX-400,120);
console.log('Query String: '+game.net.getQueryString(),game.world.centerX-300,140);
console.log('Query String Param: '+game.net.getQueryString('atari'),game.world.centerX-300,160);
+32
View File
@@ -0,0 +1,32 @@
<?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');
?>