2025-03-08 10:08:44 -05:00
|
|
|
#ifndef LEVEL_H
|
|
|
|
#define LEVEL_H
|
|
|
|
|
|
|
|
typedef struct Level Level;
|
|
|
|
|
|
|
|
#include "game.h"
|
|
|
|
|
|
|
|
struct Level {
|
|
|
|
char *data;
|
|
|
|
size_t data_size;
|
|
|
|
int length;
|
|
|
|
int width;
|
|
|
|
Game *game;
|
|
|
|
};
|
|
|
|
|
2025-03-08 13:22:05 -05:00
|
|
|
void init_level(Game *g, Level *l, char *filepath);
|
2025-03-08 10:08:44 -05:00
|
|
|
void draw_level(Level *l);
|
|
|
|
|
|
|
|
#endif
|