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
26
modules/wave_survival/weapons/rifle.h
Normal file
26
modules/wave_survival/weapons/rifle.h
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#ifndef WEAPONS_RIFLE_H
|
||||
#define WEAPONS_RIFLE_H
|
||||
|
||||
#include "wave_survival/player_camera.h"
|
||||
#include "wave_survival/weapon_base.h"
|
||||
class PlayerBody;
|
||||
|
||||
class Rifle : public WeaponBase {
|
||||
GDCLASS(Rifle, WeaponBase);
|
||||
static void _bind_methods();
|
||||
void on_primary_fire(bool down);
|
||||
void on_alt_mode(bool alt_mode);
|
||||
void on_animation_changed(String new_anim);
|
||||
void ready();
|
||||
void process(double delta);
|
||||
|
||||
public:
|
||||
void _notification(int what);
|
||||
|
||||
private:
|
||||
float ads_factor{ 0.5f };
|
||||
bool request_alt_mode{ false };
|
||||
bool in_alt_mode{ false };
|
||||
};
|
||||
|
||||
#endif // !WEAPONS_RIFLE_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue