From d677dbead66c2c52c2ffc51a64ece0a06114d2ad Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Sat, 10 Feb 2018 14:41:49 +0100 Subject: Switch to gradle, update gitignore --- src/WorldScene.java | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 src/WorldScene.java (limited to 'src/WorldScene.java') 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 - ); - } - } -} -- cgit v1.2.1