No longer allow balls to collect powerups
This commit is contained in:
parent
9df81ee854
commit
719c32502c
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user