Browse Source

Added constructors to Goldfish and Render

They really don't do anything yet.
master
Josh Hofing 11 years ago
parent
commit
08d9774c50
2 changed files with 19 additions and 0 deletions
  1. +12
    -0
      src/Goldfish.java
  2. +7
    -0
      src/Render.java

+ 12
- 0
src/Goldfish.java View File

@@ -1,2 +1,14 @@
public class Goldfish {

private Grid _grid;
private Render _render;

public Goldfish () {
_render = new Render(640, 480);
_grid = new Grid(640, 480);
}

public static void main (String[] args) {
Goldfish g = new Goldfish();
}
}

+ 7
- 0
src/Render.java View File

@@ -1,2 +1,9 @@
public class Render {
public Render (int width, int height) {
}

public Render () {
this(100,100);
}

}

Loading…
Cancel
Save