Body/Group testing complete. Now focusing on n-way collision.

This commit is contained in:
photonstorm
2014-02-03 04:09:45 +00:00
parent 28f71ed86d
commit 8315973c5d
6 changed files with 255 additions and 250 deletions
+1 -12
View File
@@ -1,5 +1,5 @@
var game = new Phaser.Game(800, 600, Phaser.CANVAS, 'phaser-example', { preload: preload, create: create, update: update, render: render });
var game = new Phaser.Game(800, 600, Phaser.AUTO, 'phaser-example', { preload: preload, create: create, update: update });
function preload() {
@@ -293,14 +293,3 @@ function restart () {
stateText.visible = false;
}
function render() {
for (var i = 0; i < aliens._container.children.length; i++)
{
game.debug.renderPhysicsBody(aliens._container.children[i].body);
}
game.debug.renderPhysicsBody(player.body);
}