瀏覽代碼

A couple adjustments.

master
Ben Kurtovic 12 年之前
父節點
當前提交
5d356c3789
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. +2
    -2
      src/Goldfish.java
  2. +2
    -2
      src/Render.java

+ 2
- 2
src/Goldfish.java 查看文件

@@ -7,8 +7,8 @@ public class Goldfish {
private Render _render;
public Goldfish() {
int height = 96;
int width = 96;
int height = 128;
int width = 128;
_grid = new Grid(width, height);
_render = new Render(width, height, _grid);
}


+ 2
- 2
src/Render.java 查看文件

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


Loading…
取消
儲存