mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
Add gravity line true hitbox visuals
This commit is contained in:
parent
55a05342e9
commit
6b7bf44402
1 changed files with 11 additions and 0 deletions
|
@ -274,6 +274,17 @@ namespace level_debugger
|
||||||
}
|
}
|
||||||
|
|
||||||
graphics.draw_rect(bounding_box.x, bounding_box.y, bounding_box.w, bounding_box.h, graphics.getRGB(15, 90, 90));
|
graphics.draw_rect(bounding_box.x, bounding_box.y, bounding_box.w, bounding_box.h, graphics.getRGB(15, 90, 90));
|
||||||
|
|
||||||
|
// For gravity lines, show the true hitbox.
|
||||||
|
if (obj.entities[i].type == 9)
|
||||||
|
{
|
||||||
|
graphics.draw_rect(bounding_box.x - 1, bounding_box.y + 1, bounding_box.w + 2, bounding_box.h, graphics.getRGB(90, 90, 15));
|
||||||
|
}
|
||||||
|
else if (obj.entities[i].type == 10)
|
||||||
|
{
|
||||||
|
graphics.fill_rect(bounding_box.x - 2, bounding_box.y - 1, bounding_box.w + 1, bounding_box.h + 2, graphics.getRGB(90, 90, 15));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < (int) obj.blocks.size(); i++)
|
for (int i = 0; i < (int) obj.blocks.size(); i++)
|
||||||
|
|
Loading…
Reference in a new issue