Refactor powerups, move to new package. Decrease long paddle chance to 8%
This commit is contained in:
@ -6,6 +6,9 @@ import com.badlogic.gdx.graphics.GL20;
|
||||
import com.badlogic.gdx.math.MathUtils;
|
||||
import com.badlogic.gdx.math.Vector2;
|
||||
import com.me.brickbuster.entity.*;
|
||||
import com.me.brickbuster.entity.powerup.GluePowerUp;
|
||||
import com.me.brickbuster.entity.powerup.LongerPaddlePowerUp;
|
||||
import com.me.brickbuster.entity.powerup.PowerUp;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
@ -39,7 +42,7 @@ public class BrickBuster extends ApplicationAdapter {
|
||||
if (MathUtils.randomBoolean(0.08f)) {
|
||||
powerUpType = GluePowerUp.class;
|
||||
}
|
||||
else if (MathUtils.randomBoolean(0.25f)) {
|
||||
else if (MathUtils.randomBoolean(0.08f)) {
|
||||
powerUpType = LongerPaddlePowerUp.class;
|
||||
}
|
||||
bricks.add(new Brick(this, powerUpType, x, HEIGHT - y));
|
||||
|
Reference in New Issue
Block a user