npc start

This commit is contained in:
2025-09-14 08:58:54 -05:00
parent 067b0d2e9f
commit 517b39649c
8 changed files with 65 additions and 10 deletions

View File

@@ -8,11 +8,7 @@
#pragma once
// #include "direction.h"
#include "rpg/entity/player.h"
// #include "npc.h"
// #define ENTITY_TURN_DURATION 0.075f // Duration for turning in seconds
// #define ENTITY_MOVE_DURATION 0.1f // Duration for moving 1 tile, in seconds.
// #define ENTITY_PLAYER_INDEX 0
#include "npc.h"
typedef struct {
void (*init)(entity_t *entity);
@@ -35,6 +31,7 @@ typedef struct entity_s {
union {
player_t player;
npc_t npc;
};
} entity_t;