Beispiel #1
0
 public HumanPlayer(Color color)
     : base(color)
 {
     healthBar = new ProgressBar(new Zone(0, 0, 10, 2));
     healthBar.BorderThickness = 0;
     resourceBar = new ResourceBar(new Zone(0, 0, 40, 6));
     resourceBar.BorderThickness = 0;
     pt = new PeriodicTable(this);
     selectionCircle = new Animation("SelectionCircleSmall");
 }
Beispiel #2
0
 public static void DrawPixel(Zone bounds, Color color) {
     if (pixel == null)
         pixel = new Sprite("WhitePixel");
     pixel.Color = color;
     pixel.Draw(bounds);
 }
Beispiel #3
0
        public Screen(string backgroundSpriteName = "None") {
            
            background = new Sprite(backgroundSpriteName);
            Bounds = new Zone(0, 0, background.Bounds.Width, background.Bounds.Height);

        }