示例#1
0
        //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();
        }
示例#2
0
 //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();
 }
示例#3
0
 //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;
     }
 }
示例#4
0
        //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);
 }
示例#6
0
 //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();
 }