#include <stdbool.h>
#include <stdint.h>
#include <neo6502.h>
Go to the source code of this file.
◆ neo_sprite_collision()
bool neo_sprite_collision |
( |
uint8_t |
first, |
|
|
uint8_t |
second, |
|
|
uint8_t |
distance |
|
) |
| |
Check collision between two sprites.
- Parameters
-
first | First sprite ID |
second | Second sprite ID |
distance | Maximum distance between sprites |
◆ neo_sprite_hide()
void neo_sprite_hide |
( |
uint8_t |
id | ) |
|
Hide the specified sprite.
- Parameters
-
◆ neo_sprite_position()
void neo_sprite_position |
( |
uint8_t |
id, |
|
|
uint16_t * |
x, |
|
|
uint16_t * |
y |
|
) |
| |
Get sprite position.
- Parameters
-
id | Sprite ID |
x | X position |
y | Y position |
◆ neo_sprite_reset()
void neo_sprite_reset |
( |
void |
| ) |
|
◆ neo_sprite_set()
void neo_sprite_set |
( |
uint8_t |
id, |
|
|
uint16_t |
x, |
|
|
uint16_t |
y, |
|
|
uint8_t |
img, |
|
|
uint8_t |
flip, |
|
|
uint8_t |
anchor |
|
) |
| |
Set the sprite.
- Parameters
-
id | Sprite ID |
x | X position |
y | Y position |
img | Image paramemters |
flip | Flip axis |
anchor | Anchor value |