26 lines
432 B
C
26 lines
432 B
C
#ifndef LEVEL_H
|
|
#define LEVEL_H
|
|
|
|
// Utilitaire de décompression de level
|
|
|
|
#include <stdint.h>
|
|
|
|
typedef struct
|
|
{
|
|
uint8_t width;
|
|
uint8_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 |