Physics I guess

This commit is contained in:
2025-09-15 19:37:01 -05:00
parent 07ab2b4b02
commit f799690d3c
25 changed files with 315 additions and 13 deletions

View File

@@ -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;