Update game to use the correct Java version and directory
Updated the project configuration to use Java 21 and run the game from the correct directory, resolving previous Java version conflicts and ensuring proper execution. Replit-Commit-Author: Agent Replit-Commit-Session-Id: f6819c21-e85d-45ac-acde-604db2cfa4fe Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: ed832e25-fc86-4753-8cfc-80cfabc64a02 Replit-Helium-Checkpoint-Created: true
This commit is contained in:
15
American-Identity-Project/Flag.java
Normal file
15
American-Identity-Project/Flag.java
Normal file
@@ -0,0 +1,15 @@
|
||||
import javax.swing.ImageIcon;
|
||||
|
||||
public class Flag extends Collidable {
|
||||
public Flag(int x, int y, int w, int h) {
|
||||
super(x, y, w, h, new ImageIcon("Sprites/Flag.png"));
|
||||
}
|
||||
|
||||
public void setPosition(int x, int y, int w, int h) {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.width = w;
|
||||
this.height = h;
|
||||
this.rect.setBounds(x, y, w, h);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user