Add hitbox outline utility method

This commit is contained in:
Thimo committed 2020-11-08 14:12:08 +01:00
1 parent d6713c3a96
commit decb8b855d
2 files changed
+22 -3

No files matched your search

+3 -3
View File
@@ -12,7 +12,7 @@ namespace Strawberry.Sample
public this(Point pos)
: base(pos)
{
Hitbox = Rect(-4, -8, 8, 8);
Hitbox = Rect(-4, -8, 16, 16);
Add(tJumpGrace = new Timer());
Add(tVarJump = new Timer());
@@ -102,8 +102,8 @@ namespace Strawberry.Sample
{
base.Draw();
DrawHitbox(.Green);
//Game.Batcher.Tex(Assets.Textures["test"], X - 4, Y - 8);
DrawHitboxOutline(.Green);
Game.Batcher.Tex(Assets.Textures["test"], X - 4, Y - 8);
}
}
}