本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
說明
登入
ben
/
goldfish
镜像来自
https://github.com/earwig/goldfish
關注
1
收藏
1
複製
0
程式碼
版本發佈
0
活動
瀏覽代碼
Added constructors to Goldfish and Render
They really don't do anything yet.
master
Josh Hofing
12 年之前
父節點
791e6e1fa0
當前提交
08d9774c50
共有
2 個檔案被更改
,包括
19 行新增
和
0 行删除
分割檢視
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
查看文件
@@ -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
查看文件
@@ -1,2 +1,9 @@
public class Render {
public Render (int width, int height) {
}
public Render () {
this(100,100);
}
}
Write
Preview
Loading…
取消
儲存