forked from isovector/adventure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadventure.h
52 lines (43 loc) · 933 Bytes
/
adventure.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 ADVENTURE_ADVENTURE_H
#define ADVENTURE_ADVENTURE_H
#include <stdlib.h>
#include <stdio.h>
#include <allegro.h>
#include <math.h>
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
#include <string.h>
#define SCREEN_WIDTH 1280
#define SCREEN_HEIGHT 720
#define FRAMERATE 60
typedef struct tagPOINT {
int x, y;
} POINT;
typedef struct tagHOTSPOT {
const char *internal_name;
const char *display_name;
} HOTSPOT;
typedef enum tagSTATE {
STATE_PAUSED = 1,
STATE_GAME = 2,
STATE_ACTION = 4,
STATE_INVENTORY = 8,
STATE_MENU = 16
} STATE;
typedef enum tagOBJTYPE {
OBJ_HOTSPOT,
OBJ_ACTOR,
OBJ_OBJECT,
OBJ_ITEM,
OBJ_NOTHING
} OBJTYPE;
#include "path.h"
#include "lua.h"
extern BITMAP *buffer;
extern BITMAP *room_art, *room_hot;
extern HOTSPOT *hotspots[256];
extern POINT *waypoints[MAX_WAYPOINTS];
extern int waypoint_count;
extern unsigned int waypoint_connections[MAX_WAYPOINTS];
#endif