30 lines
403 B
C
30 lines
403 B
C
#ifndef _MAP_H
|
|
#define _MAP_H
|
|
|
|
#include <stdlib.h>
|
|
#include <gint/display.h>
|
|
|
|
#define TILE_SIZE 16
|
|
#define TILESET_WIDTH 46
|
|
|
|
#define SCREEN_WIDTH 25
|
|
#define SCREEN_HEIGHT 14
|
|
|
|
#define ENGINE_TICK 100
|
|
|
|
struct map
|
|
{
|
|
int width, height, nb_layers;
|
|
|
|
// to get the (x; y) cell : layers[layer_number][y * map_width + x]
|
|
uint16_t *layers[];
|
|
};
|
|
|
|
struct camera
|
|
{
|
|
int x, y;
|
|
int dx, dy;
|
|
};
|
|
|
|
#endif /* _MAP_H */
|