/[projet1]/users/dbug/DungeonOSDK/DEFINES.H
Defence Force logotype

Contents of /users/dbug/DungeonOSDK/DEFINES.H

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1377 - (show annotations)
Thu Jul 28 18:17:03 2016 UTC (3 years, 9 months ago) by dbug
File MIME type: text/plain
File size: 2303 byte(s)
Trying to port the old Dungeon Demo to the OSDK.
Problems found so far:
- "a" after rotation instructions (rol a, asr a, etc... instead of just rol, asr, ...)
- "BYTE" and "WORD" instead of .byt and .word
- "RESERVE" instead of ".dsb"
and that's about it :D
1
2
3 #define BYTE char;
4 #define UBYTE unsigned char;
5
6 #define AND &&
7 #define OR ||
8
9 #define TRUE 1
10 #define FALSE 0
11
12
13 #define CURSOR_LEFT 8
14 #define CURSOR_RIGHT 9
15 #define CURSOR_DOWN 10
16 #define CURSOR_UP 11
17
18
19 // OPAQUE: On ne voit rien au travers (mur/illusion)
20 // CHUTE: Si on passe dessus, on tombe
21 // SOLIDE: On ne peut pas passer au travers (mur)
22 // CLOSABLE: On peut la fermer ou l'ouvrir (porte/herse)
23 // TELEPORT: Le passage fait changer d'emplacement [ziooouuup !]
24 // BUTTON: Permet d'activer un m‚canisme quelconque [click]
25 // INSERT: Mettre un objet pour actionner quelque chose (clef/piece/objet sp‚cial)
26
27
28 #define GROUND_NONE 0
29
30 #define GROUND_OPAQUE 1
31 #define GROUND_CHUTE 2
32 #define GROUND_SOLIDE 4
33 #define GROUND_CLOSABLE 8
34 #define GROUND_TELEPORT 16
35 #define GROUND_BUTTON 32
36 #define GROUND_INSERT 64
37 #define GROUND_OPEN 128
38
39
40
41
42 #define BUFFER_ADR(x,y) ((char*)(DisplayBuffer+((x)-10)+(30*((y)-70))))
43 #define SCREEN_ADR(x,y) ((char*)(0xa000+(x)+(40*(y))))
44
45 #define LEVEL_POS(x,y,level) (((x)&31)+(((y)&31)<<5)+(((level)&63)<<10))
46
47
48
49 #define NO_OBJECT 255
50
51 enum
52 {
53 SPRITE_EPEE,
54 SPRITE_BOUCLIER,
55 SPRITE_LANCE,
56 SPRITE_ECU,
57 SPRITE_ARC,
58 SPRITE_TORCHE,
59 SPRITE_CARQUOI,
60 SPRITE_HACHE,
61
62 SPRITE_BOUSSOLE,
63 SPRITE_VISAGE_MORT,
64 SPRITE_VISAGE_1,
65 SPRITE_VISAGE_2,
66 SPRITE_VISAGE_3,
67 SPRITE_VISAGE_4,
68 SPRITE_VISAGE_5,
69 SPRITE_FIOLE,
70
71 SPRITE_PARCHEMIN,
72 SPRITE_BOURSE,
73 SPRITE_POMME,
74 SPRITE_CLEF,
75 SPRITE_MAIN_GAUCHE,
76 SPRITE_MAIN_DROITE,
77 };
78
79 #define EMPTY 255
80
81
82
83 enum
84 {
85 CLASS_FIGHTER,
86 CLASS_RANGER,
87 CLASS_MAGICIAN,
88 CLASS_CLERIC,
89 CLASS_THIEF,
90 };
91
92 enum
93 {
94 RACE_HUMAN,
95 RACE_ELF,
96 RACE_DWARF,
97 RACE_HALFLING,
98 RACE_HALF_ELF,
99 };
100
101
102
103 enum
104 {
105 FORMATED_LEFT,
106 FORMATED_RIGHT,
107 FORMATED_CENTER,
108 };
109
110
111
112
113 enum
114 {
115 DIRECTION_NORTH,
116 DIRECTION_EAST,
117 DIRECTION_SOUTH,
118 DIRECTION_WEST,
119 };
120
121
122
123 enum
124 {
125 BLACK,
126 RED,
127 GREEN,
128 YELLOW,
129 BLUE,
130 MAGENTA,
131 CYAN,
132 WHITE,
133 };
134
135

  ViewVC Help
Powered by ViewVC 1.1.26