Starting ent stuff
This commit is contained in:
@@ -9,10 +9,7 @@
|
||||
#include "direction.h"
|
||||
#include "rpg/entity/player.h"
|
||||
#include "npc.h"
|
||||
#include "physics/physics.h"
|
||||
|
||||
#define ENTITY_FRICTION 16.0f
|
||||
#define ENTITY_MIN_VELOCITY 0.1f
|
||||
#define ENTITY_COUNT 256
|
||||
|
||||
typedef struct map_s map_t;
|
||||
@@ -29,10 +26,7 @@ typedef struct entity_s {
|
||||
uint8_t id;
|
||||
entitytype_t type;
|
||||
direction_t direction;
|
||||
vec3 position;
|
||||
vec3 velocity;
|
||||
|
||||
float_t hitboxRadius;
|
||||
uint32_t position;// Tile index
|
||||
|
||||
union {
|
||||
player_t player;
|
||||
|
||||
Reference in New Issue
Block a user