mirror of
https://github.com/wassname/phaser.git
synced 2026-08-12 12:20:38 +08:00
Updated a lot of examples to Phaser 2.0 :)
This commit is contained in:
@@ -25,7 +25,7 @@ function create() {
|
||||
|
||||
game.stage.backgroundColor = '#0072bc';
|
||||
|
||||
text = game.add.bitmapText(200, 100, 'Bitmap Fonts!', { font: '64px Desyrel', align: 'center' });
|
||||
text = game.add.bitmapText(200, 100, 'desyrel','Bitmap Fonts!',64);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ function preload() {
|
||||
function create() {
|
||||
|
||||
// This returns an array of all the image keys in the cache
|
||||
var images = game.cache.getImageKeys();
|
||||
var images = game.cache.getKeys(Phaser.Cache.IMAGE);
|
||||
|
||||
// Now let's create some random sprites and enable them all for drag and 'bring to top'
|
||||
for (var i = 0; i < 20; i++)
|
||||
|
||||
Reference in New Issue
Block a user