ugBASIC 1.18
An isomorphic BASIC language compiler for retrocomputers
Loading...
Searching...
No Matches
sprite_priority.c File Reference
#include "../../../ugbc.h"

Go to the source code of this file.

Functions

void sprite_priority (Environment *_environment, int _sprite, int _priority)
 Emit ASM code for instruction SPRITE [int] COLOR [int].
void sprite_priority_vars (Environment *_environment, char *_sprite, char *_priority)
 Emit ASM code for instruction SPRITE [int] COLOR [int].

Function Documentation

◆ sprite_priority()

void sprite_priority ( Environment * _environment,
int _sprite,
int _priority )

Emit ASM code for instruction SPRITE [int] COLOR [int].

This function emits a code capable of changing the specific color for a given sprite.

Parameters
_environmentCurrent calling environment
_spriteIndex of the sprite for which to change color
_colorIndex of the color

Definition at line 53 of file sprite_priority.c.

◆ sprite_priority_vars()

void sprite_priority_vars ( Environment * _environment,
char * _sprite,
char * _priority )

Emit ASM code for instruction SPRITE [int] COLOR [int].

This function emits a code capable of changing the specific color for a given sprite.

Parameters
_environmentCurrent calling environment
_spriteExpression with the index of the sprite for which to change color
_colorExpression with the index of the color

Definition at line 67 of file sprite_priority.c.