@@ -7,8 +7,8 @@ public class Goldfish { | |||||
private Render _render; | private Render _render; | ||||
public Goldfish() { | public Goldfish() { | ||||
int height = 96; | |||||
int width = 96; | |||||
int height = 128; | |||||
int width = 128; | |||||
_grid = new Grid(width, height); | _grid = new Grid(width, height); | ||||
_render = new Render(width, height, _grid); | _render = new Render(width, height, _grid); | ||||
} | } | ||||
@@ -43,12 +43,12 @@ public class Render extends Canvas implements Runnable { | |||||
} | } | ||||
public Render() { | public Render() { | ||||
this(256, 256, new Grid(128, 128)); | |||||
this(256, 256); | |||||
} | } | ||||
private void setScale() { | private void setScale() { | ||||
if (height <= 128 || width <= 128) { | if (height <= 128 || width <= 128) { | ||||
Render.scale = 3; | |||||
Render.scale = 4; | |||||
} else if (height <= 256 || width <= 256) { | } else if (height <= 256 || width <= 256) { | ||||
Render.scale = 2; | Render.scale = 2; | ||||
} | } | ||||