This commit is contained in:
2026-04-20 00:34:49 -05:00
parent 8cd4c216fd
commit 1970217203
14 changed files with 191 additions and 148 deletions

View File

@@ -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;
}