crystal-tower/inc/level.h

20 lines
375 B
C
Raw Normal View History

2021-11-10 00:37:45 +01:00
#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);