Exemplo n.º 1
0
 public Base(Game1 game, Node node, Graph graph, AIAgent agent)
     :base(game, node, graph, agent, agent.RenderColor)
 {
     buildingType = BuildingType.Base;
     spriteName = "base";
     this.agent = agent;
     this.node = node;
     isOperational = true;
     this.node.IsBlocked = true;
     this.Position = node.Position * Game1.graphSize;
     this.Position = new Vector2(Position.X + 16, Position.Y + 16);
     health = 1000;
     maxHealth = 1000;
 }
Exemplo n.º 2
0
 static void Main()
 {
     using (var game = new Game1())
         game.Run();
 }