mirror of
https://github.com/wassname/phaser.git
synced 2026-08-20 12:40:12 +08:00
Adding in missing tests and fixing as we go
This commit is contained in:
@@ -20,6 +20,7 @@ module Phaser {
|
||||
|
||||
super(game);
|
||||
|
||||
this.body.type = Types.BODY_DYNAMIC;
|
||||
this.lifespan = 0;
|
||||
this.friction = 500;
|
||||
|
||||
@@ -45,7 +46,7 @@ module Phaser {
|
||||
*/
|
||||
public update() {
|
||||
|
||||
//lifespan behavior
|
||||
// Lifespan behavior
|
||||
if (this.lifespan <= 0)
|
||||
{
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user