public override void Draw(SpaceGame target) { base.Draw(target); target.FillRect(bounds.topLeft, bounds.bottomRight, currentColours.fill); target.DrawRect(bounds.topLeft, bounds.bottomRight, currentColours.outline); target.DrawText(bounds.topLeft + (1, 1), text, currentColours.foreground); }
public override void Draw(SpaceGame target) { target.PixelMode = Pixel.Mode.Alpha; // motion information // box vf boxTopLeft = bounds.bottomRight - 60; vf boxBottomRight = boxTopLeft + 50; vf boxMiddle = boxTopLeft + 25; target.FillRect(boxTopLeft, boxBottomRight, new Pixel(200, 100, 100, 100)); vf dirOfVel = player.vel.Normalized() * Math.Min(player.vel.Length * 10, 23); vf dirOfShip = vf.Along(default, 10, -player.rotation + (float)Math.PI / 2);