OpenSNES
Modern Open-Source SNES Development SDK
Loading...
Searching...
No Matches
goomba.c File Reference
#include <snes.h>
#include <snes/map.h>
#include <snes/object.h>

Macros

#define GOOMBA_LEFT   1
#define GOOMBA_RIGHT   2
#define GOOMBA_XVELOC   0x028A

Functions

void goombainit (u16 xp, u16 yp, u16 type, u16 minx, u16 maxx)
void goombaupdate (u16 idx)

Variables

u16 goombanum
s16 goombax
s16 goombay
u16 nbobjects
 Running count of active objects in the level.
u8 sprgoomba

Macro Definition Documentation

◆ GOOMBA_LEFT

#define GOOMBA_LEFT   1

◆ GOOMBA_RIGHT

#define GOOMBA_RIGHT   2

◆ GOOMBA_XVELOC

#define GOOMBA_XVELOC   0x028A

Function Documentation

◆ goombainit()

void goombainit ( u16 xp,
u16 yp,
u16 type,
u16 minx,
u16 maxx )

◆ goombaupdate()

void goombaupdate ( u16 idx)

Variable Documentation

◆ goombanum

u16 goombanum

◆ goombax

s16 goombax

◆ goombay

s16 goombay

◆ nbobjects

u16 nbobjects
extern

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().

◆ sprgoomba

u8 sprgoomba
extern