We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6e331a commit 7554408Copy full SHA for 7554408
examples/core/core_2d_camera.js
@@ -40,7 +40,7 @@ for (let i = 0; i < MAX_BUILDINGS; i++) {
40
}
41
42
const camera = r.Camera2D(
43
- r.Vector2(),
+ r.Vector2(screenWidth / 2, screenHeight / 2),
44
r.Vector2(player.x + 20, player.y + 20),
45
0, 1)
46
0 commit comments