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

@@ -0,0 +1,42 @@
#include <stdlib.h>
#include "Template.h"
#include "../../client_source/client.h"
int templateUpdate(int action, void* data) {
return 0;
}
entity* Createtemplate() {
entity* ent = malloc(sizeof(entity));
template* p= malloc(sizeof(template));
*t = (template){
};
*ent = (entity){
.id = ID,
.name = "template",
.description = "description",
.tile = {
.simble = 'T',
.background = {0,0,0},
.forground = {0,0,0},
},
.position = (vec2){0,0},
.data = t,
.world = w,
.callback = {
.init = PlayerInit,
.update = PlayerUpdate,
.free = PlayerFree,
},
};
return ent;
}
int templateInit(void* ent) {return 0;}
int templateFree(void* ent) {return 0;}