there is now a player character and the world renders using a cammera
This commit is contained in:
27
source/game_source/cammera.h
Normal file
27
source/game_source/cammera.h
Normal 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
|
||||
Reference in New Issue
Block a user