game/include/controls.h

23 lines
678 B
C

/* controls.h
* manage input and actuate controls
*
* receive and manage user input & have them actuate in-game things
*
* For license details see COPYING.
*/
#ifndef CONTROLS_H
#define CONTROLS_H
/* copying shadow oam to true oam is left to the user to allow for many
* operations on different sprites and then copy all of them at once */
// move player around the screen
// sprite must have 2-frames, and should be toggled via xors of tile_toggle
void player_update (struct spriteReg *sprite, int base_tile, int tile_toggle);
// scroll screen when player nears edges
void player_scroll (struct spriteReg *sprite, struct bgReg *background);
#endif /* CONTROLS_H */