mirror of
https://github.com/wassname/phaser.git
synced 2026-09-10 12:29:30 +08:00
Second commit, all the basic examples added, and wip files moved
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
|
||||
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);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user