-
Notifications
You must be signed in to change notification settings - Fork 0
/
ss.h
77 lines (67 loc) · 1.18 KB
/
ss.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#ifdef WIN32
#include <windows.h>
#endif
#define deg2rad(x) (((x)*180)/PI)
#define KEY_UP 0
#define KEY_DOWN 1
#define KEY_LEFT 2
#define KEY_RIGHT 3
#define KEY_JUMP 4
#define KEY_RAISE 5
#define KEY_LOWER 6
#define MENU 1
#define GAME 2
#define EDITOR 3
#define SURF_TILE1 0x1
#define SURF_TILE2 0x2
#define SURF_TILE3 0x4
#define SURF_SUPPLY 0x8
#define SURF_EXPLODE 0x10
#define SURF_ACCEL 0x20
#define SURF_STICKY 0x40
#define SURF_SLIPPERY 0x80
#define SURF_GOAL 0x100
#define TEXTURES 15
#define FORWARD 0
#define LEFT 1
#define RIGHT 2
#define UP 3
#define FLOOR 5
extern char basePath[64];
//for holding bullets
struct bullet {
public:
float x;
float spdx;
float y;
float spdy;
float z;
float spdz;
float angle;
int bounces;
float exploding;
bullet *next;
bullet *previous;
};
//just a vector
struct vector {
float x;
float y;
float z;
};
//actors - character, monsters, other shit.
struct actor {
float x;
float y;
float z;
float spdx, spdy, spdz;
float angle;
float g_fuel; //health remaining
float g_oxygen; //standard skyroads stuff
int animframe; //frame for animation
int exploding;
int flags;
bool onground;
float offGroundTime;
actor *next;
};