//Draw the bounding box to the screen public override void Draw() { Raylib.Rectangle rec = new Raylib.Rectangle(Left, Top, Width, Height); Raylib.Raylib.DrawRectangleLinesEx(rec, 1, _color); base.Draw(); }
//Draw the bounding box to the screen public override void Draw() { Raylib.Rectangle rec = new Raylib.Rectangle( XAbsolute - Width / 2, YAbsolute - Height / 2, Width, Height); Raylib.Raylib.DrawRectangleLinesEx(rec, 1, _color); base.Draw(); }
//draw the hitbox public void DrawHitBoxes() { if (canDrawHitbox == true) { Raylib.Rectangle rec = new Raylib.Rectangle(Left, Top, Width, Height); Raylib.Raylib.DrawRectangleLinesEx(rec, 5, color); } if (canDrawHitbox == false) { return; } }
//Draw the bounding box to the screen public override void Draw() { if (isPressed == true) { color = Raylib.Color.BLUE; } else { color = Raylib.Color.RED; } Raylib.Rectangle rec = new Raylib.Rectangle(Left, Top, Width, Height); Raylib.Raylib.DrawRectangleLinesEx(rec, 1, _color); base.Draw(); }
//Draw the bounding box to the screen public override void Draw() { Raylib.Rectangle rec = new Raylib.Rectangle(XAbsolute, YAbsolute, Width, Height); Raylib.Raylib.DrawRectangleLinesEx(rec, 1, Raylib.Color.RED); }
//Draw the bounding box to the screen public override void Draw() { Raylib.Rectangle rec = new Raylib.Rectangle(Left, Top, Width, Height); // Raylib.Raylib.DrawRectangleLinesEx(rec, 1, _color); uncomment this when hitboxes need to be shown base.Draw(); }