mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 15:12:18 +00:00
12 lines
323 B
JavaScript
12 lines
323 B
JavaScript
|
|
||
|
var game = new Phaser.Game(800, 600, Phaser.CANVAS, 'phaser-example', { create: create });
|
||
|
|
||
|
function create() {
|
||
|
|
||
|
var text = "- phaser -\n with a sprinkle of \n pixi dust.";
|
||
|
var style = { font: "65px Arial", fill: "#ff0044", align: "center" };
|
||
|
|
||
|
var t = game.add.text(game.world.centerX-300, 0, text, style);
|
||
|
|
||
|
}
|