Jo Engine
2024.04.28
Jo Sega Saturn Engine
|
Jo Engine Function prototypes special effects (Laser beam, etc) More...
Go to the source code of this file.
Data Structures | |
struct | jo_homing_laser |
Homing laser effect definition. More... | |
Functions | |
void | jo_init_homing_laser (jo_homing_laser *const homing_laser, const int sprite_id, const unsigned short thickness, const int z, const unsigned short nb_sections) |
Init jo_homing_laser struct. More... | |
void | jo_draw_homing_laser (jo_homing_laser *const homing_laser) |
Draw homing laser effect. More... | |
Jo Engine Function prototypes special effects (Laser beam, etc)
struct jo_homing_laser |
Homing laser effect definition.
Data Fields | ||
---|---|---|
bool | center_sprites_according_to_thickness | |
jo_fixed | horizontal_thickness | |
jo_vector_fixed | intermediate_point_a | |
jo_vector_fixed | intermediate_point_b | |
jo_fixed | length | |
jo_fixed | section_step | |
jo_vector_fixed | source | |
int | sprite_id | |
jo_vector_fixed | target | |
bool | use_intermediate_point_a | |
bool | use_intermediate_point_b | |
jo_fixed | vertical_thickness |
void jo_draw_homing_laser | ( | jo_homing_laser *const | homing_laser | ) |
Draw homing laser effect.
homing_laser | Homing laser definition |
void jo_init_homing_laser | ( | jo_homing_laser *const | homing_laser, |
const int | sprite_id, | ||
const unsigned short | thickness, | ||
const int | z, | ||
const unsigned short | nb_sections | ||
) |
Init jo_homing_laser struct.
homing_laser | Homing laser definition |
sprite_id | Sprite ID |
thickness | Horizontal Laser thickness (1 to 256) |
z | Default z index (500 for example) |
nb_sections | Number of section in the curve aka smoothness (4 to 64 and must be a multiple of 2). |