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:
@@ -16,7 +16,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++)
|
||||
|
||||
@@ -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);
|
||||
|
||||
var test = game.add.group();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user