supercasiobros/include/level.h

26 lines
432 B
C

#ifndef LEVEL_H
#define LEVEL_H
// Utilitaire de décompression de level
#include <stdint.h>
typedef struct
{
uint16_t width;
uint16_t height;
uint8_t data[]; // rough data
} packed_level_t;
void unpack_level(packed_level_t const * const packed_level_t);
void set_level(int w, int l); // Configures the level
void get_lvl_id(int w, int l, char * str); // Retruns level ID into a char [4]
void malloc_error();
#endif