Moves all game source files and assets into the 'American-Identity-Project' directory and updates the manifest to point to the 'Display' class as the main entry point. Replit-Commit-Author: Agent Replit-Commit-Session-Id: f6819c21-e85d-45ac-acde-604db2cfa4fe Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: a9500e48-7f68-408f-a5c6-28df9f59fe00 Replit-Helium-Checkpoint-Created: true
16 lines
349 B
Java
16 lines
349 B
Java
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);
|
|
}
|
|
}
|