level 4
This commit is contained in:
@@ -4,7 +4,8 @@ public class Projectile extends Collidable {
|
||||
int xVelo;
|
||||
|
||||
public Projectile(int x, int y, int w, int h, int curLevel, int direction) {
|
||||
super(x, y, w, h, new ImageIcon("Sprites/Projectiles/" + curLevel + ".png"));
|
||||
super(
|
||||
x, y, w, h, new ImageIcon("Sprites/Projectiles/" + ((curLevel == 1) ? "1" : "2") + ".png"));
|
||||
xVelo = 10 * direction;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user