-
Notifications
You must be signed in to change notification settings - Fork 4
/
map.h
52 lines (43 loc) · 795 Bytes
/
map.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef MAP_H
#define MAP_H
#include <stdint.h>
#include "palpic.h"
#include "vec2f.h"
#include "enemy.h"
enum map_scrolldir {
MS_UP,
MS_LEFT,
MS_RIGHT,
};
struct map_fglayer {
uint8_t fg[12][12];
};
struct map_bglayer {
uint8_t bg[6][3];
};
struct map_screen {
struct map_bglayer bg;
struct map_fglayer fg;
};
enum map_type {
MT_FOREST = 0,
MT_URBAN,
MT_DESERT,
MT_MAX,
};
typedef uint8_t mapscreen_index;
#define MAPSCREEN_BLOCKED ((mapscreen_index) -1)
struct map {
enum map_type maptype;
enum enemy_type enemy_type;
const char mission_text[5][34];
vec2f worldmap_coords;
mapscreen_index screen_map[28][7];
uint8_t client_face;
uint8_t mini_pic;
uint8_t bonuslayer_count;
uint8_t rewardk; /* reward in 1000$ */
uint8_t boss_id;
prgb enemy_palette[8];
};
#endif