From 719c32502c477edbc669ac2ddab2700e040e3d0e Mon Sep 17 00:00:00 2001 From: Matt Low Date: Mon, 19 Nov 2018 23:41:48 +0400 Subject: [PATCH] No longer allow balls to collect powerups --- core/src/com/me/brickbuster/entity/Ball.java | 3 +-- core/src/com/me/brickbuster/entity/powerup/PowerUp.java | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/core/src/com/me/brickbuster/entity/Ball.java b/core/src/com/me/brickbuster/entity/Ball.java index 4a89b6a..cc9d5e6 100644 --- a/core/src/com/me/brickbuster/entity/Ball.java +++ b/core/src/com/me/brickbuster/entity/Ball.java @@ -96,8 +96,7 @@ public class Ball extends Entity implements PhysicsBody, CollisionListener { ballFixture.filter.categoryBits = EntityType.BALL; ballFixture.filter.maskBits = EntityType.BOUNDARY | EntityType.BRICK - | EntityType.PADDLE | EntityType.POWER_UP - | EntityType.SHIELD; + | EntityType.PADDLE | EntityType.SHIELD; body = state.world.createBody(ballBody); body.createFixture(ballFixture); diff --git a/core/src/com/me/brickbuster/entity/powerup/PowerUp.java b/core/src/com/me/brickbuster/entity/powerup/PowerUp.java index 45f4c88..a23052b 100644 --- a/core/src/com/me/brickbuster/entity/powerup/PowerUp.java +++ b/core/src/com/me/brickbuster/entity/powerup/PowerUp.java @@ -75,7 +75,7 @@ public abstract class PowerUp extends Entity implements PhysicsBody, CollisionLi ballFixture.isSensor = true; ballFixture.filter.categoryBits = EntityType.POWER_UP; - ballFixture.filter.maskBits = EntityType.PADDLE | EntityType.BALL; + ballFixture.filter.maskBits = EntityType.PADDLE; body = state.world.createBody(ballBody); body.createFixture(ballFixture);