CreedVI / Raylib-J

Handmade Java binding for Raylib
zlib License
91 stars 15 forks source link

Camera2D constructor not initialising all needed defaults #32

Closed mateoox600 closed 2 years ago

mateoox600 commented 2 years ago

Describe the bug The Camera2D constructor without any parameters inits target and offset but not rotation and zoom which cause the camera to no work / to display blank screen

To Reproduce Steps to reproduce the behavior:

  1. Create a basic raylib app
  2. Add a Camera2D without constructor params
  3. See

Expected behavior For the constructor without params of the Camera2D class to init all fields with default values

CreedVI commented 2 years ago

Added values to constructor. Issue resolved.