Add rudimentary camera and side scrolling support
This commit is contained in:
@@ -18,7 +18,6 @@ enum EntityType
|
||||
{
|
||||
entitytype_null,
|
||||
entitytype_hero,
|
||||
entitytype_camera,
|
||||
entitytype_npc,
|
||||
entitytype_tile,
|
||||
entitytype_count,
|
||||
|
||||
@@ -40,8 +40,8 @@ void renderer_string(Renderer *const renderer, Font *const font,
|
||||
void renderer_debugString(Renderer *const renderer, Font *const font,
|
||||
const char *const string);
|
||||
|
||||
void renderer_entity(Renderer *renderer, Entity *entity, f32 dt, f32 rotate,
|
||||
v3 color);
|
||||
void renderer_entity(Renderer *renderer, v4 cameraBounds, Entity *entity,
|
||||
f32 dt, f32 rotate, v3 color);
|
||||
|
||||
void renderer_object(Renderer *renderer, v2 pos, v2 size, f32 rotate, v3 color,
|
||||
Texture *tex);
|
||||
|
||||
@@ -22,6 +22,8 @@ typedef struct World
|
||||
|
||||
enum TexList texType;
|
||||
|
||||
v2 cameraPos;
|
||||
|
||||
i32 heroIndex;
|
||||
i32 freeEntityIndex;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user