diff options
| author | J08nY | 2016-04-17 15:31:58 +0200 |
|---|---|---|
| committer | J08nY | 2016-04-17 15:31:58 +0200 |
| commit | 35bbb9652b414285869fa62e3019b522f34e878f (patch) | |
| tree | 55e3ee0be4ea7671efa5ef4e827130931461bbe2 /game.js | |
| parent | 9745389c7c0efacb9666b6496e88acf80d7fbc2b (diff) | |
| download | ld35-35bbb9652b414285869fa62e3019b522f34e878f.tar.gz ld35-35bbb9652b414285869fa62e3019b522f34e878f.tar.zst ld35-35bbb9652b414285869fa62e3019b522f34e878f.zip | |
Diffstat (limited to 'game.js')
| -rw-r--r-- | game.js | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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); }; |
