formatting

This commit is contained in:
2026-04-19 14:41:10 -05:00
parent 9f790813bb
commit a803f5e759
31 changed files with 793 additions and 795 deletions

View File

@@ -1,15 +1,15 @@
import javax.swing.ImageIcon;
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"));
xVelo = 10 * direction;
}
public void move(){
this.x += xVelo;
this.rect.x = this.x;
}
}
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"));
xVelo = 10 * direction;
}
public void move() {
this.x += xVelo;
this.rect.x = this.x;
}
}