added badman shooting and reloading

This commit is contained in:
2025-10-06 17:30:49 +01:00
parent 8a360df98a
commit fcc7adfb22
8 changed files with 82 additions and 13 deletions

View File

@@ -5,6 +5,7 @@
#include "../core/macros.h"
#include <SDL3/SDL_events.h>
#include "aabb.h"
#define PLAYER_SPEED 10.0f
#define PLAYER_RELOAD_TIME 1.5f
@@ -23,7 +24,7 @@ typedef struct Player Player;
struct Player
{
World *world;
V2f pos;
AABB collision;
World_Area currentArea;
U32 bulletsLoaded;
ControlState controls;