Macros | |
| #define | INSECT_DRAW_DX (-8) |
| #define | INSECT_DRAW_DY (-14) |
| #define | INSECT_FRAMES 4 |
| #define | INSECT_LEFT 1 |
| #define | INSECT_RATE 6 |
| #define | INSECT_RIGHT 2 |
| #define | INSECT_XVELOC 0x0040 /* 1/4 px a frame */ |
Functions | |
| void | insectinit (u16 xp, u16 yp, u16 type, u16 minx, u16 maxx) |
| Create a robot insect (object type 1) patrolling between minx and maxx. | |
| void | insectupdate (u16 idx) |
| The insect's per-frame update: patrol, animation, sprite position. | |
Variables | |
| u16 | insectnum |
| s16 | insectx |
| s16 | insecty |
| u16 | nbobjects |
| Shared sprite palette for all entity types (BGR555). | |
| #define INSECT_DRAW_DX (-8) |
| #define INSECT_DRAW_DY (-14) |
| #define INSECT_FRAMES 4 |
| #define INSECT_LEFT 1 |
| #define INSECT_RATE 6 |
| #define INSECT_RIGHT 2 |
Create a robot insect (object type 1) patrolling between minx and maxx.
| void insectupdate | ( | u16 | idx | ) |
The insect's per-frame update: patrol, animation, sprite position.
| u16 insectnum |
| s16 insectx |
| s16 insecty |
|
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().