summaryrefslogtreecommitdiff
path: root/game.js
diff options
context:
space:
mode:
authorJ08nY2016-04-17 15:31:58 +0200
committerJ08nY2016-04-17 15:31:58 +0200
commit35bbb9652b414285869fa62e3019b522f34e878f (patch)
tree55e3ee0be4ea7671efa5ef4e827130931461bbe2 /game.js
parent9745389c7c0efacb9666b6496e88acf80d7fbc2b (diff)
downloadld35-35bbb9652b414285869fa62e3019b522f34e878f.tar.gz
ld35-35bbb9652b414285869fa62e3019b522f34e878f.tar.zst
ld35-35bbb9652b414285869fa62e3019b522f34e878f.zip
Diffstat (limited to 'game.js')
-rw-r--r--game.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/game.js b/game.js
index f9c1eb4..bd8b1d0 100644
--- a/game.js
+++ b/game.js
@@ -355,14 +355,17 @@ var World = (function (_super) {
mob.approach(_this.player);
});
//tick projectiles and remove them if time out
- this.projectiles.filter(function (projectile) {
+ //todo fix projectile removal, now ammojs spams obj s undefined
+ /*
+ this.projectiles.filter((projectile) => {
projectile.tick(delta);
- var keep = projectile.time < 10 * 1000;
+ let keep = projectile.time < 10 * 1000;
if (!keep) {
- _this.remove(projectile);
+ this.remove(projectile);
}
return keep;
});
+ */
//physijs
this.simulate(delta, 1);
};