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,27 @@
#ifndef CAMMERA_H
#define CAMMERA_H
#include "tile.h"
#include "world.h"
#include <tart.h>
typedef struct {
int pos_x;
int pos_y;
int size_x;
int size_y;
int tileCount;
char x;
tile* frame;
world* w;
tart_window* tw;
} cammera;
int CammeraInit(cammera* c, int sx, int sy, int px, int py, world* w, tart_window* tw);
int CammeraRender(cammera*c);
void CammeraFree(cammera* c);
#endif // !CAMMERA_H