|
ugBASIC 1.18
An isomorphic BASIC language compiler for retrocomputers
|
#include "../../ugbc.h"Go to the source code of this file.
Functions | |
| Variable * | hit_to (Environment *_environment, int _sprite) |
| Emit ASM code for = HIT([int]x). | |
| Variable * | hit_to_vars (Environment *_environment, char *_sprite) |
| Emit ASM code for = HIT([expression]). | |
| Variable * hit_to | ( | Environment * | _environment, |
| int | _sprite ) |
Emit ASM code for = HIT([int]x).
This function can be used to issue code aimed at verifying if a sprite has had a collision with a tile. The result (0 = no collision, 0xff = collision occurred) is returned in the output variable. This function is used when a direct integer is used.
| _environment | Current calling environment |
| _sprite | Integer with the bitmask of the sprites |
| Variable * hit_to_vars | ( | Environment * | _environment, |
| char * | _sprite ) |
Emit ASM code for = HIT([expression]).
This function can be used to issue code aimed at verifying if a sprite has had a hit with another sprite. The result (0 = no collision, 0xff = collision occurred) is returned in the output variable. This function is used when an expression is used.
| _environment | Current calling environment |
| _sprite | Expression with the bitmask of the sprites |