27 lines
427 B
C
27 lines
427 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 unpackLevel(packed_level_t const * const packed_level_t);
|
|
|
|
|
|
void setLevel(int w, int l); // Configures the level
|
|
|
|
|
|
|
|
void getLevelID(int w, int l, char * str); // Retruns level ID into a char [4]
|
|
|
|
void mallocError();
|
|
|
|
#endif
|