-
Notifications
You must be signed in to change notification settings - Fork 0
/
globals.h
executable file
·123 lines (94 loc) · 3 KB
/
globals.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
// Graber
//
// Copyright (C) 2018-2021 Heiko Wolf
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License As published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY Or FITNESS For A PARTICULAR PURPOSE. See the
// GNU General Public License For more details.
//
// You should have received a copy of the GNU General Public License along
// With this program; if not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
//
// Kontakt: [email protected]
#ifndef _GLOBALS_H_
#define _GLOBALS_H_
#include "/opt/gbdk/include/asm/gbz80/types.h"
#include "/opt/gbdk/include/gb/gb.h"
#define FALSE 0
#define TRUE 1
#define NORTH 1
#define SOUTH 2
#define WEST 3
#define EAST 4
#define MOVE_HORIZONT 1
#define MOVE_VERTICAL 2
#define MOVE_STACHEL 3
#define MOVE_NORTH 1
#define MOVE_SOUTH 2
#define MOVE_WEST 3
#define MOVE_EAST 4
#define MOVE_UP 5
#define MOVE_DOWN 6
///
extern UINT8 v_gameover;
extern UINT8 v_movetimer;
extern UINT8 v_angriffstimer;
///Lebenspunkte Spieler
extern INT8 v_slp;
///maximale Lebenspunkte Spieler
extern INT8 v_smlp;
///XK-Koordinate Spieler
extern UINT8 v_sxk;
///YK-Koordinate Spieler
extern UINT8 v_syk;
///zusammengerechnete Kartenkoordinate Spieler
extern UINT8 v_smk;
///X-Mapkoordinate Spieler
extern UINT8 v_smxk;
///Y-Mapkoordinate Spieler
extern UINT8 v_smyk;
///Bewegungsrichtung Spieler
extern UINT8 v_sri;
///Gold Spieler
extern UINT8 v_sgo;
///maximales Gold Spieler
extern UINT8 v_smgo;
extern UINT8 v_sangriff;
///Haltbarkeit des Pickel
extern UINT8 v_shalt;
///max. Haltbarkeit Pickel
extern UINT8 v_smhalt;
extern UINT8 v_sschlaege;
extern UINT8 v_edelstein;
extern UINT8 v_timer;
extern UINT8 v_tick;
extern unsigned char v_lvldat [241];
extern unsigned char v_tile [1];
extern UINT8 v_i;
extern UINT8 v_lvl;
extern UINT8 v_aktion;
extern UINT8 v_gxk [6]; //Koordinate X
extern UINT8 v_gyk [6]; //Koordinate Y
extern UINT8 v_gflag [6]; //Flag 1 - horizontale, 2 - vertikale Bewegung, 0 - nicht aktiv
extern INT8 v_glp [6]; //Lebenspunkte
extern UINT8 v_gtp [6]; //Gegnertrefferpunkte
extern UINT8 v_gmk [6]; //Koordinate auf Map
extern UINT8 v_gri [6]; //Bewegungsrichtung
extern UINT8 v_gftile [6];
extern UINT8 v_gltile [6];
extern UINT8 v_trefferlooptime;
extern UINT8 v_gegnerlooptime;
extern UINT8 v_kampf;
extern UINT8 v_j;
extern UINT8 v_mg; //maximale Gegner
extern UINT8 v_stref;
extern UINT8 v_gspeed;
extern UINT8 v_quit;
#endif