Jo Engine
2024.04.28
Jo Sega Saturn Engine
|
Jo Engine Hitbox and tools. More...
Go to the source code of this file.
Functions | |
static __jo_force_inline bool | jo_hitbox_detection (const int sprite_id1, const int x1, const int y1, const int sprite_id2, const int x2, const int y2) |
Fast method to get if two sprites intersects (HitBox processing) More... | |
static __jo_force_inline bool | jo_hitbox_detection_custom_boundaries (const int sprite_id1, const int x1, const int y1, const int x2, const int y2, const int w2, const int h2) |
Fast method to get if the sprite intersects with the box (HitBox processing) More... | |
Jo Engine Hitbox and tools.
|
static |
Fast method to get if two sprites intersects (HitBox processing)
sprite_id1 | Sprite Id of the first sprite |
x1 | Horizontal position of the first sprite |
y1 | Vertical position of the first sprite |
sprite_id2 | Sprite Id of the second sprite |
x2 | Horizontal position of the second sprite |
y2 | Vertical position of the second sprite |
|
static |
Fast method to get if the sprite intersects with the box (HitBox processing)
sprite_id1 | Sprite Id of the first sprite |
x1 | Horizontal position of the first sprite |
y1 | Vertical position of the first sprite |
x2 | Horizontal position of the second box |
y2 | Vertical position of the second box |
w2 | Width of the second box |
h2 | Height of the second box |