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

Go to the source code of this file.

Functions

void sprite_color (Environment *_environment, int _sprite, int _color)
 Emit ASM code for instruction SPRITE [int] COLOR [int].
void sprite_color_vars (Environment *_environment, char *_sprite, char *_color)
 Emit ASM code for instruction SPRITE [int] COLOR [int].

Function Documentation

◆ sprite_color()

void sprite_color ( Environment * _environment,
int _sprite,
int _color )

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 96 of file sprite_color.c.

◆ sprite_color_vars()

void sprite_color_vars ( Environment * _environment,
char * _sprite,
char * _color )

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 110 of file sprite_color.c.