We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 539c1c3 commit 70a3f42Copy full SHA for 70a3f42
1 file changed
tinygamecore.js
@@ -199,14 +199,15 @@ class tgc_pbomb extends tgc_entity {
199
this.shards = shards;
200
// console.log("this pbomb gets " + this.shards + " shards");
201
this.exploded = false;
202
+ this.collisionWhitelist = ["shrapnel","drifter"];
203
}
204
phys(friction,move) {
205
if(!this.collidedLast) this.collidedLast = [];
206
this.oX = this.x;
207
this.oY = this.y;
208
super.momentumWithBounds(friction,move);
209
this.collidingObjects.forEach(e => {
- if(e.type === "player" || e.type === "drifter") {
210
+ if(e.type === "player" || e.type === "drifter" || e.type === "shrapnel") {
211
this.xv = e.xv*5;
212
this.yv = e.yv*5;
213
e.xv *= -2;
0 commit comments