Skip to content

Commit 6bff3d1

Browse files
committed
update
1 parent 7e4e2c4 commit 6bff3d1

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed
76 Bytes
Binary file not shown.

src/JavaGameEngine/Backend/UpdateThread.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public UpdateThread(LinkedList<Component> o) {
2222
this.setObjects(o);
2323
}
2424

25-
public static Component camera = new Component();
25+
public static Component camera = new Component(new Vector2(0,0));
2626

2727
private LinkedList<Component> UpdateObjects()
2828
{

src/JavaGameEngine/Components/Component.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ public Component() {
4545
this.scale = new Vector2(100,100);
4646
this.position = new Vector2(200,200);
4747
}
48-
48+
public Component(Vector2 pos) {
49+
this.scale = new Vector2(100,100);
50+
this.position = pos;
51+
}
4952
public void setMouseInside(boolean mouseInside) {
5053
this.mouseInside = mouseInside;
5154
}

0 commit comments

Comments
 (0)