Jo Engine Hitbox and tools.
More...
Go to the source code of this file.
|
| 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).
|
| 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).
|
Jo Engine Hitbox and tools.
- Author
- Johannes Fetz
◆ jo_hitbox_detection()
| __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 ) |
|
static |
Fast method to get if two sprites intersects (HitBox processing).
- Parameters
-
| 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 |
- Returns
- true if sprites collides otherwise false
◆ jo_hitbox_detection_custom_boundaries()
| __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 ) |
|
static |
Fast method to get if the sprite intersects with the box (HitBox processing).
- Parameters
-
| 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 |
- Returns
- true if sprites collides otherwise false