feat: initialized template and wrote first gameplay code

This commit is contained in:
Sara 2025-07-14 23:03:04 +02:00
parent 82f2cae0f6
commit 46a958f801
47 changed files with 1093 additions and 33 deletions

View file

@ -0,0 +1,24 @@
#ifndef PLAYER_CAMERA_H
#define PLAYER_CAMERA_H
#include "scene/3d/camera_3d.h"
class PlayerCamera : public Camera3D {
GDCLASS(PlayerCamera, Camera3D);
static void _bind_methods();
void on_look_input(Vector2 input);
void update_fov();
protected:
void _notification(int what);
public:
void set_fov_factor(float value);
float get_fov_factor() const;
private:
float base_fov{ 60.f };
float fov_factor{ 1.0f };
};
#endif // !PLAYER_CAMERA_H