feat: initialized template and wrote first gameplay code
This commit is contained in:
parent
82f2cae0f6
commit
46a958f801
47 changed files with 1093 additions and 33 deletions
24
modules/wave_survival/player_camera.h
Normal file
24
modules/wave_survival/player_camera.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue