mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 13:43:26 +00:00
15 lines
431 B
JavaScript
15 lines
431 B
JavaScript
|
|
var game = new Phaser.Game(800, 600, Phaser.AUTO, 'phaser-example', {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));
|
|
|
|
}
|