mirror of
https://github.com/wassname/phaser.git
synced 2026-09-09 11:28:47 +08:00
Updated a lot of examples to Phaser 2.0 :)
This commit is contained in:
@@ -7,16 +7,16 @@ function preload() {
|
||||
|
||||
}
|
||||
|
||||
var text;
|
||||
var bpmText;
|
||||
|
||||
function create() {
|
||||
|
||||
text = game.add.bitmapText(200, 100, 'Phaser & Pixi\nrocking!', { font: '64px Desyrel', align: 'center' });
|
||||
bmpText = game.add.bitmapText(200, 100, 'desyrel','Phaser & Pixi \nrocking!',64);
|
||||
|
||||
}
|
||||
|
||||
function update() {
|
||||
|
||||
text.setText('Phaser & Pixi\nrocking!\n' + Math.round(game.time.now));
|
||||
bmpText.setText('Phaser & Pixi\nrocking!\n' + Math.round(game.time.now));
|
||||
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ WebFontConfig = {
|
||||
function preload() {
|
||||
|
||||
// Load the Google WebFont Loader script
|
||||
game.load.script('webfont', '//ajax.googleapis.com/ajax/libs/webfont/1.4.7/webfont.js');
|
||||
game.load.script('webfont', 'http://ajax.googleapis.com/ajax/libs/webfont/1.4.7/webfont.js');
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user