Sprites - itIsBrando/GBzLib Wiki

Original URL: https://github.com/itIsBrando/GBzLib/wiki/Sprites

sprite.asm contains routines for OAM control.

Note: this library requires video.asm

List of routines:

obj_init

Parameters: None

Destroys: All

obj_blit

Parameters: None

Destroys: AF, B, DE, HL

obj_set_tile

Parameters: A-sprite number (0-39), D-tile number

Destroys: BC, HL

obj_set_tile

Parameters: A - sprite number (0-39)

Outputs: D - tile number

Destroys: BC, HL

obj_set_flag

Parameters: A - sprite number, D - flag

Destroys: BC, HL

obj_get_flag

Parameters: A - sprite number

Outputs: D - flag

Destroys: BC, HL

obj_set_position

Parameters: A - sprite number, H - x, L - y

Destroys: DE, HL

obj_get_position

Parameters: A - sprite number,

Outputs: H - x, L - y Destroys: DE, HL