diff options
Diffstat (limited to 'src/WorldScene.java')
-rw-r--r-- | src/WorldScene.java | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/WorldScene.java b/src/WorldScene.java deleted file mode 100644 index 6dff04a..0000000 --- a/src/WorldScene.java +++ /dev/null @@ -1,32 +0,0 @@ -import java.awt.Color; -import java.awt.Dimension; -import java.awt.Graphics; -import java.awt.Graphics2D; - - -public class WorldScene extends Scene { - - private Actor actors[]; - private Map map; - - private int tileSize; - - public WorldScene(Dimension gridSize, int tileSize) { - this.tileSize = tileSize; - map = new Map(gridSize); - } - - @Override - public void render(Graphics g) { - Graphics2D g2d = (Graphics2D) g; - - for (Tile tile : this.map.grid) { - g2d.setColor(Color.GREEN); - g2d.fillRect( - this.tileSize * tile.x, - this.tileSize * tile.y, - this.tileSize, this.tileSize - ); - } - } -} |