示例#1
0
文件: Title.cs 项目: progre/sx13
 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);
 }
示例#2
0
文件: Star.cs 项目: progre/sx13
 public Star(Point point, int speed, Color color)
 {
     _point = point;
     _speed = speed;
     _color = color;
 }