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
22
modules/wave_survival/player_input.h
Normal file
22
modules/wave_survival/player_input.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue