Updated a lot of examples to Phaser 2.0 :)

This commit is contained in:
alvinsight
2014-02-28 18:22:52 +00:00
parent 8662cd2fd4
commit f17cdd9c32
24 changed files with 77 additions and 68 deletions
+3 -3
View File
@@ -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));
}
+1 -1
View File
@@ -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');
}