initial commit

This commit is contained in:
2026-04-15 19:50:15 -05:00
commit b00f8d7d87
59 changed files with 1100 additions and 0 deletions

25
Powerup.java Normal file
View File

@@ -0,0 +1,25 @@
import javax.swing.ImageIcon;
import javax.swing.Timer;
import java.util.*;
public class Powerup extends Collectable{
int yVelo, xVelo, id;
boolean onGround;
public Powerup(int x, int y, int w, int h, int id){
super(x,y,w,h,new ImageIcon("Sprites/Powerup" + id + ".png"));
xVelo = 0; yVelo = -7;
onGround = false;
this.id = id;
}
public void moveX(int moveX){
this.x += moveX;
this.rect.x = this.x;
}
public void moveY(int moveY){
this.y += moveY;
this.rect.y = this.y;
}
}