mirror of
https://github.com/wassname/phaser.git
synced 2026-06-27 16:10:15 +08:00
10 lines
335 B
JavaScript
10 lines
335 B
JavaScript
var game = new Phaser.Game(800, 600, Phaser.CANVAS, 'phaser-example', { create: create });
|
|
|
|
function create() {
|
|
|
|
var style = { font: "65px Arial", fill: "#ff0044", align: "center" };
|
|
var text = game.add.text(game.world.centerX, game.world.centerY, "- phaser -\nwith a sprinkle of\npixi dust", style);
|
|
|
|
text.anchor.set(0.5);
|
|
|
|
} |