mirror of
https://github.com/wassname/phaser.git
synced 2026-09-09 11:28:47 +08:00
Body/Group testing complete. Now focusing on n-way collision.
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user