Beispiel #1
0
 private void RenderMenu(Renderer renderer)
 {
     var selectionColor = new Color(0, 255, 255);
     var unselectionColor = new Color(0, 0, 255);
     var unselectableColor = new Color(25, 25, 25);
     renderer.DrawText("GAME START", new Point { X = 320, Y = 400 },
         _selection == 0 ? selectionColor : unselectionColor);
     renderer.DrawText("EXTRA GAME", new Point { X = 320, Y = 430 },
         !_enabledEx ? unselectableColor : _selection == 1 ? selectionColor : unselectionColor);
     renderer.DrawText("   EXIT   ", new Point { X = 320, Y = 460 },
         _selection == 2 ? selectionColor : unselectionColor);
 }
Beispiel #2
0
 public Star(Point point, int speed, Color color)
 {
     _point = point;
     _speed = speed;
     _color = color;
 }