#include <snes.h>#include <snes/map.h>#include <snes/object.h>#include "res/tilesMario.inc"#include "res/mario.inc"#include "res/goomba.inc"#include "res/koopatroopa.inc"Macros | |
| #define | KOOPATROOPA_LEFT 1 |
| #define | KOOPATROOPA_RIGHT 2 |
| #define | KOOPATROOPA_XVELOC 0x028A |
Functions | |
| static void | koopatroopa_animate (u16 idx) |
| static void | koopatroopa_draw (void) |
| static void | koopatroopa_setup_sprites (u16 xp, u16 yp) |
| void | koopatroopainit (u16 xp, u16 yp, u16 type, u16 minx, u16 maxx) |
| void | koopatroopaupdate (u16 idx) |
Variables | |
| u16 | koopatroopanum |
| s16 | koopatroopax |
| s16 | koopatroopay |
| u16 | nbobjects |
| Shared sprite palette for all entity types (BGR555). | |
| #define KOOPATROOPA_LEFT 1 |
| #define KOOPATROOPA_RIGHT 2 |
| #define KOOPATROOPA_XVELOC 0x028A |
|
static |
|
static |
| void koopatroopaupdate | ( | u16 | idx | ) |
| u16 koopatroopanum |
| s16 koopatroopax |
| s16 koopatroopay |
|
extern |
Shared sprite palette for all entity types (BGR555).
Running count of active objects in the level.
Initialized to 1 (Mario is always object 0) and incremented as enemies are loaded from the map's object layer by objLoadObjects().