mirror of
https://github.com/wassname/phaser.git
synced 2026-07-17 01:30:32 +08:00
Test
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
timer = game.time.now +cycle;
|
||||
|
||||
// Get the first alive item and kill it.
|
||||
var item = game.world.group.getFirstAlive();
|
||||
var item = game.world.getFirstAlive();
|
||||
|
||||
if(item){
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
|
||||
game.debug.renderText('One item will be killed each second.', 280, 420);
|
||||
// Get living and dead number of a group.
|
||||
game.debug.renderText('Living: ' + game.world.group.countLiving() + ', Dead: ' + game.world.group.countDead(), 330, 440);
|
||||
game.debug.renderText('Living: ' + game.world.countLiving() + ', Dead: ' + game.world.countDead(), 330, 440);
|
||||
}
|
||||
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user