Macros | |
| #define | AUTOMATON_DRAW_DX (-10) |
| #define | AUTOMATON_DRAW_DY (-16) |
| #define | AUTOMATON_FRAMES 4 |
| #define | AUTOMATON_LEFT 1 |
| #define | AUTOMATON_RATE 6 |
| #define | AUTOMATON_RIGHT 2 |
| #define | AUTOMATON_XVELOC 0x0030 /* 3/16 px a frame */ |
Functions | |
| void | automatoninit (u16 xp, u16 yp, u16 type, u16 minx, u16 maxx) |
| Create a patrol automaton (object type 2) patrolling between minx and maxx. | |
| void | automatonupdate (u16 idx) |
| The automaton's per-frame update: patrol, animation, sprite position. | |
Variables | |
| u16 | automatonnum |
| s16 | automatonx |
| s16 | automatony |
| u16 | nbobjects |
| Shared sprite palette for all entity types (BGR555). | |
| #define AUTOMATON_DRAW_DX (-10) |
| #define AUTOMATON_DRAW_DY (-16) |
| #define AUTOMATON_FRAMES 4 |
| #define AUTOMATON_LEFT 1 |
| #define AUTOMATON_RATE 6 |
| #define AUTOMATON_RIGHT 2 |
Create a patrol automaton (object type 2) patrolling between minx and maxx.
| void automatonupdate | ( | u16 | idx | ) |
The automaton's per-frame update: patrol, animation, sprite position.
| u16 automatonnum |
| s16 automatonx |
| s16 automatony |
|
extern |
Shared sprite palette for all entity types (BGR555).
Running count of active objects in the level.
Initialized to 1 (Kit is always object 0) and incremented as enemies are loaded from the map's object layer by objLoadObjects().