Skip to content

Commit

Permalink
cam2d: initialize fields
Browse files Browse the repository at this point in the history
  • Loading branch information
redthing1 committed Jul 16, 2024
1 parent dcffc37 commit b43999c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/re/ng/camera/cam2d.d
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ class SceneCamera2D : SceneCamera {

this() {
_camera = raylib.Camera2D();
_camera.offset = Vector2(0, 0);
_camera.target = Vector2(0, 0);
_camera.rotation = 0;
_camera.zoom = 1;
}

override void setup() {
Expand Down

0 comments on commit b43999c

Please sign in to comment.