Explorar el Código

A couple adjustments.

master
Ben Kurtovic hace 11 años
padre
commit
5d356c3789
Se han modificado 2 ficheros con 4 adiciones y 4 borrados
  1. +2
    -2
      src/Goldfish.java
  2. +2
    -2
      src/Render.java

+ 2
- 2
src/Goldfish.java Ver fichero

@@ -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 Ver fichero

@@ -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;
}


Cargando…
Cancelar
Guardar