Physics I guess
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
// #include "direction.h"
|
||||
#include "rpg/entity/player.h"
|
||||
#include "npc.h"
|
||||
#include "physics/physics.h"
|
||||
|
||||
typedef struct {
|
||||
void (*init)(entity_t *entity);
|
||||
@@ -25,10 +26,12 @@ typedef enum {
|
||||
|
||||
typedef struct entity_s {
|
||||
// uint32_t id;// Completely unique ID for this entity.
|
||||
float_t x, y;
|
||||
entitytype_t type;
|
||||
// direction_t dir;
|
||||
|
||||
vec2 position;
|
||||
vec2 velocity;
|
||||
|
||||
union {
|
||||
player_t player;
|
||||
npc_t npc;
|
||||
|
Reference in New Issue
Block a user