This commit is contained in:
2025-10-09 15:07:07 -05:00
parent 7622f81309
commit c4c43b23ad
11 changed files with 162 additions and 32 deletions

View File

@@ -12,7 +12,7 @@
#include "physics/physics.h"
#include "rpg/world/worldunit.h"
#define ENTITY_FRICTION 1
#define ENTITY_FRICTION 2
#define ENTITY_MIN_VELOCITY 1
#define ENTITY_COUNT 256
@@ -27,9 +27,10 @@ typedef enum {
} entitytype_t;
typedef struct entity_s {
uint8_t id;
entitytype_t type;
direction_t direction;
worldchunkpos_t position[WORLD_DIMENSIONS];
worldpos_t position[WORLD_DIMENSIONS];
worldsubtile_t velocity[WORLD_DIMENSIONS];
union {