there is now a player character and the world renders using a cammera

This commit is contained in:
2026-04-09 13:11:55 -07:00
parent 09c310cb4a
commit af639e62c3
47 changed files with 1737 additions and 83 deletions

View File

@@ -4,10 +4,13 @@
#define ENTITY_LIST_ACTION_ADD
#define ENTITY_LIST_ACTION_REMOVE
#include "entity.h"
#include <time.h>
typedef struct {
int count;
entity* entities[256];
struct timespec start;
struct timespec current;
} entity_list;
typedef struct {
@@ -17,13 +20,13 @@ typedef struct {
}entity_list_transaction;
void EntityListInit(entity_list* list);
int EntityListAddEntity(entity* ent);
int EntityListRemoveEntity(entity* ent);
//int EntityListAddEntity(entity* ent);
//int EntityListRemoveEntity(entity* ent);
//
//int EntityListTransactionSet(entity_list_transaction* ta, int action, void* data);
//int EntityListTransactionSend(entity_list* list, entity_list_transaction* ta);
int EntityListTransactionSet(entity_list_transaction* ta, int action, void* data);
int EntityListTransactionSend(entity_list* list, entity_list_transaction* ta);
int EntityListUpdate();
int EntityListUpdate(entity_list* list);
#endif