mirror of https://git.sr.ht/~kikoodx/crystal-tower
20 lines
375 B
C
20 lines
375 B
C
#pragma once
|
|
|
|
struct LevelBin {
|
|
unsigned char format;
|
|
unsigned char chunk_size;
|
|
unsigned short width;
|
|
unsigned short height;
|
|
unsigned char data[];
|
|
} __attribute__((__packed__));
|
|
|
|
struct Level {
|
|
int width;
|
|
int height;
|
|
char *data;
|
|
};
|
|
|
|
struct Level level_load(struct LevelBin *restrict);
|
|
void level_free(struct Level *restrict);
|
|
void level_draw(struct Level *restrict);
|