Files
am-id-game-engine/Tile.java
2026-02-27 20:10:29 +00:00

16 lines
312 B
Java

import java.awt.Graphics;
public class Tile {
int x,y,width,height;
public Tile(int x, int y, int width, int height){
this.x = x;
this.y = y;
this.width = width;
this.height = height;
}
public void draw(Graphics g){
g.fillRect(x,y,width,height);
}
}