jtmm2/include/level.h

21 lines
500 B
C
Raw Normal View History

2020-09-11 18:07:53 +02:00
#ifndef _DEF_LEVEL
#define _DEF_LEVEL
#include <gint/defs/types.h>
2020-12-21 12:18:55 +01:00
typedef struct Level {
uint width; /* in tiles */
uint height; /* in tiles */
const uint8_t **layers; /* points toward the level content */
uint8_t layers_count;
uint8_t solid_layer; /* id of the solid layer */
2020-09-11 18:07:53 +02:00
} Level;
#include "camera.h"
void level_step(const Level *level);
void level_draw(const Level *level, Camera *camera);
void layer_draw(const Level *level, Camera *camera, uint layer_id);
2020-09-11 18:07:53 +02:00
#endif /* _DEF_LEVEL */