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,22 @@
#ifndef PLAYER_INPUT_H
#define PLAYER_INPUT_H
#include "scene/main/node.h"
class PlayerInput : public Node {
GDCLASS(PlayerInput, Node);
static void _bind_methods();
void _notification(int what);
virtual void unhandled_input(Ref<InputEvent> const &event) override;
public:
static String sig_movement_input;
static String sig_look_input;
static String sig_primary_fire;
static String sig_alt_mode;
static String sig_run;
static String sig_jump;
static String sig_crouch;
};
#endif // !PLAYER_INPUT_H