Skip to content

Commit 7554408

Browse files
committed
fix camera initialization
1 parent b6e331a commit 7554408

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/core/core_2d_camera.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ for (let i = 0; i < MAX_BUILDINGS; i++) {
4040
}
4141

4242
const camera = r.Camera2D(
43-
r.Vector2(),
43+
r.Vector2(screenWidth / 2, screenHeight / 2),
4444
r.Vector2(player.x + 20, player.y + 20),
4545
0, 1)
4646

0 commit comments

Comments
 (0)