Initial commit
This commit is contained in:
16
Tile.java
Normal file
16
Tile.java
Normal file
@@ -0,0 +1,16 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user