feat: Initial bandit roaming
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
#include <SDL3/SDL_events.h>
|
||||
|
||||
#define PLAYER_SPEED 10.0f
|
||||
#define PLAYER_RELOAD_TIME 1.5f
|
||||
#define PLAYER_BULLET_COUNT 6
|
||||
|
||||
typedef struct ControlState ControlState;
|
||||
struct ControlState {
|
||||
@@ -14,6 +16,7 @@ struct ControlState {
|
||||
bool leftDown;
|
||||
bool upDown;
|
||||
bool downDown;
|
||||
bool shot;
|
||||
};
|
||||
|
||||
typedef struct Player Player;
|
||||
@@ -22,6 +25,9 @@ struct Player
|
||||
V2f pos;
|
||||
U32 bulletsLoaded;
|
||||
ControlState controls;
|
||||
V2f shotPos;
|
||||
|
||||
F32 reloadTimer;
|
||||
};
|
||||
|
||||
function void PlayerInput(SDL_Event *event, Player *player);
|
||||
|
||||
Reference in New Issue
Block a user