This website works better with JavaScript.
Home
Help
Sign In
ben
/
goldfish
mirror of
https://github.com/earwig/goldfish
Watch
1
Star
1
Fork
0
Code
Releases
0
Activity
Browse Source
Added constructors to Goldfish and Render
They really don't do anything yet.
master
Josh Hofing
12 years ago
parent
791e6e1fa0
commit
08d9774c50
2 changed files
with
19 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+12
-0
src/Goldfish.java
+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);
}
}
Write
Preview
Loading…
Cancel
Save