public void Draw() { SplashKit.FillCircle(PlayerColor, X, Y, Radius); c = SplashKit.CircleAt(X, Y, Radius); SplashKit.DrawText(Name, Color.Black, X - Radius, Y - Radius - 10); }
public override void Draw() { if (Selected) { DrawOutline(); } SplashKit.FillCircle(Color, X, Y, _radius); }
public void Draw() { SplashKit.FillCircle(PlayerColor, X, Y, Radius); c = SplashKit.CircleAt(X, Y, Radius); SplashKit.DrawText(Name, Color.Black, X - _NameWidth / 2, Y - Radius - 8); SplashKit.DrawText(Convert.ToString(Score), Color.Black, X - 3, Y + Radius); //SplashKit.DrawText($"X:{X}, Y:{Y}", Color.Black, 5, 20); }
public override void Draw() { double leftX, midX, rightX; double midY, eyeY, mouthY; leftX = _x + 17; midX = _x + 25; rightX = _x + 33; midY = _y + 25; eyeY = _y + 20; mouthY = _y + 35; SplashKit.FillCircle(Color.White, midX, midY, 25); SplashKit.DrawCircle(Color.Gray, midX, midY, 25); SplashKit.FillCircle(_mainColour, leftX, eyeY, 5); SplashKit.FillCircle(_mainColour, rightX, eyeY, 5); SplashKit.FillEllipse(Color.Gray, _x, eyeY, 50, 30); SplashKit.DrawLine(Color.Black, _x, mouthY, _x + 50, _y + 35); }
public override void Draw() { double leftX, midX, rightX; double midY, eyeY, mouthY; leftX = X + 17; midX = X + 25; rightX = X + 33; midY = Y + 25; eyeY = Y + 20; mouthY = Y + 35; SplashKit.FillCircle(Color.White, midX, midY, 25); SplashKit.DrawCircle(Color.Gray, midX, midY, 25); // SplashKit.FillCircle(MainColor, leftX, eyeY, 5); // SplashKit.FillCircle(MainColor, rightX, eyeY, 5); SplashKit.FillEllipse(Color.Gray, X, eyeY, 50, 30); SplashKit.DrawLine(Color.Black, X, mouthY, X + 50, Y + 35); }
public override void Draw() { double leftX, midX, rightX; double midY, eyeY, mouthY; leftX = X + 17; midX = X + 25; rightX = X + 33; midY = Y + 25; eyeY = Y + 20; mouthY = Y + 35; SplashKit.FillCircle(Color.Red, midX, midY, 25); SplashKit.FillCircle(Color.Blue, midX, midY, 20); SplashKit.FillCircle(Color.Green, midX, midY, 15); SplashKit.FillCircle(Color.Yellow, midX, midY, 10); SplashKit.FillCircle(Color.White, midX, midY, 5); }
public override void Draw() { double leftX = X + 20; double rightX = X + 60; SplashKit.FillRectangle(BodyColor, leftX, Y + 40, 40, 20); SplashKit.FillTriangle(WingColor, X, Y + 40, X + 20, Y + 80, X + 20, Y + 20); SplashKit.FillTriangle(WingColor, rightX + 20, Y + 40, rightX, Y + 80, rightX, Y + 20); SplashKit.FillCircle(CirColor, X + 40, Y + 50, 4); SplashKit.FillTriangle(Color.Blue, leftX + 10, Y + 60, leftX + 30, Y + 60, leftX + 20, Y + 80); SplashKit.FillTriangle(HeadColor, leftX + 10, Y + 60, leftX + 30, Y + 60, leftX + 20, Y); SplashKit.FillCircle(CirColor, leftX - 10, Y + 40, 4); SplashKit.FillCircle(CirColor, rightX + 10, Y + 40, 4); }
public override void Draw() { double leftX, midX, rightX; double midY, eyeY, mouthY; leftX = X + 17; midX = X + 25; rightX = X + 33; midY = Y + 25; eyeY = Y + 20; mouthY = Y + 35; SplashKit.DrawRectangle(MainColor, X, Y, 50, 50); SplashKit.DrawRectangle(Color.SeaGreen, X + 3, Y + 3, 45, 45); SplashKit.FillCircle(MainColor, leftX, eyeY, 5); SplashKit.FillCircle(MainColor, rightX, eyeY, 5); SplashKit.FillEllipse(Color.Peru, X + 10, eyeY + 5, 33, 22); SplashKit.FillEllipse(Color.Ivory, X + 14, eyeY + 11, 24, 16); }
// below is used to draw all the uses guesses to the screen // loops over the _pastGuesses list, for each int array in _pastguesses // it loops each item drawing it where it needs to be and in the correct color // before moving on to the next guess private void DrawPastGuesses() { int textYpos = 140; foreach (var i in _PastGuesses) { int circleXPos2 = 45; for (int x = 0; x < GUESSSIZE; x++) { if (i[x] == 0) { SplashKit.FillCircle(Color.Black, circleXPos2, textYpos, 20); } if (i[x] == 1) { SplashKit.FillCircle(Color.Red, circleXPos2, textYpos, 20); } if (i[x] == 2) { SplashKit.FillCircle(Color.Green, circleXPos2, textYpos, 20); } if (i[x] == 3) { SplashKit.FillCircle(Color.Blue, circleXPos2, textYpos, 20); } if (i[x] == 4) { SplashKit.FillCircle(Color.Yellow, circleXPos2, textYpos, 20); } if (i[x] == 5) { SplashKit.FillCircle(Color.Orange, circleXPos2, textYpos, 20); } circleXPos2 = circleXPos2 + 50; } textYpos = textYpos + 50; } }
// overload for the Circle button draw method also taking in a different size public void Draw(int xPos, int yPos, int newSize) { SplashKit.FillCircle(_requiredColor, xPos, yPos, newSize); }
// method to draw in the circle buttons public void Draw() { SplashKit.FillCircle(_requiredColor, _x, _y, _size); }
public void Draw() { SplashKit.FillCircle(MainColor, X, Y, Radius); }
public void Draw() { SplashKit.FillCircle(PlayerColor, X, Y, Radius); SplashKit.DrawText(Name, Color.Red, X - Radius, Y - Radius - 10); }
public void Draw() { SplashKit.FillCircle(PlayerColor, X, Y, Radius); SplashKit.DrawText(Name, Color.Red, X - _NameWidth / 2, Y - Radius - 8); SplashKit.DrawText(Convert.ToString(Score), Color.Black, X - 3, Y + Radius); }
public void Draw() { SplashKit.FillCircle(BulletColor, X, Y, Radius); }
public void Draw() { SplashKit.FillCircle(Color.Orange, X, Y, Radius); }