Skip to content

Commit

Permalink
fix camera initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
twuky committed Oct 11, 2023
1 parent b6e331a commit 7554408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/core/core_2d_camera.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ for (let i = 0; i < MAX_BUILDINGS; i++) {
}

const camera = r.Camera2D(
r.Vector2(),
r.Vector2(screenWidth / 2, screenHeight / 2),
r.Vector2(player.x + 20, player.y + 20),
0, 1)

Expand Down

0 comments on commit 7554408

Please sign in to comment.