Basic interaction

This commit is contained in:
2025-09-17 18:54:12 -05:00
parent 08221af3f8
commit a45a2a5bd7
5 changed files with 81 additions and 24 deletions

View File

@@ -9,6 +9,8 @@
#include "dusk.h"
#define PLAYER_SPEED 64.0f
#define PLAYER_INTERACTION_RANGE 1.0f
#define PLAYER_INTERACTION_SIZE 0.5f
typedef struct entity_s entity_t;
@@ -28,4 +30,11 @@ void playerInit(entity_t *entity);
*
* @param entity Pointer to the player entity structure.
*/
void playerMovement(entity_t *entity);
void playerMovement(entity_t *entity);
/**
* Handles interaction logic for the player entity.
*
* @param entity Pointer to the player entity structure.
*/
void playerInteraction(entity_t *entity);