OpenSNES
Modern Open-Source SNES Development SDK
Loading...
Searching...
No Matches
automaton.h File Reference
#include <snes.h>

Go to the source code of this file.

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.

Function Documentation

◆ automatoninit()

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

Create a patrol automaton (object type 2) patrolling between minx and maxx.

◆ automatonupdate()

void automatonupdate ( u16 idx)

The automaton's per-frame update: patrol, animation, sprite position.