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

@@ -46,6 +46,10 @@ public class Player extends Collidable {
}
public void setLevel(int level) {
if (level >= 2) {
this.icon = new ImageIcon("Sprites/Player/2.png");
return;
}
this.icon = new ImageIcon("Sprites/Player/" + level + ".png");
}