1
Project announcement / Re: Reye's scary game
« on: August 15, 2021, 12:01:03 pm »
Very nice, I'll test it

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
static inline bool has_horizontal_collision(void)
{
int next_pixel;
next_pixel = jo_physics_is_going_on_the_right(&physics) ? player.x + 4 :
jo_physics_is_going_on_the_left(&physics) ? player.x - 4 :
player.x;
int attr = jo_map_hitbox_detection_custom_boundaries(WORLD_MAP_ID, map_pos_x + next_pixel + SONIC_WIDTH_2, map_pos_y + player.y, 4, 20);
if (attr == JO_MAP_NO_COLLISION)
return false;
if (attr != MAP_TILE_BLOCK_ATTR)
return false;
return true;
}