# HG changeset patch # User Alys Brooks # Date 2022-07-25 07:26:33 # Node ID 616efddd694a17816c279c986d5abeb6f8be0e00 # Parent 0cf405c28da8fb5b84c762aa7cee51e0e29563ff Remove some dead code. diff --git a/isometric-park-fna/FNAGame.cs b/isometric-park-fna/FNAGame.cs --- a/isometric-park-fna/FNAGame.cs +++ b/isometric-park-fna/FNAGame.cs @@ -122,8 +122,6 @@ public bool quit = false; - - [STAThread] private static void Main(string[] args) { @@ -155,8 +153,6 @@ { Logging.Debug("Loaded: " + assembly.ToString() + "\n"); } - ; - #endif this.gdm = new GraphicsDeviceManager(this) { // Typically you would load a config here... @@ -169,7 +165,6 @@ this.simulation = new Simulation(this.squaresAcross, this.squaresDown, new float[] {16.66667f*240, 16.66667f*120, 16.66667f*60, 16.66667f*30, 16.66667f*1 }); - showBudget = false; showGrid = true; showTrees = true; @@ -546,7 +541,6 @@ this.showBudget = this.budgetWindow.update(mouseCur, this.simulation.latestBudget, this.simulation.previousBudget); } - this.original_point = Vector2.Transform(new Vector2(mouseCur.X, mouseCur.Y), Matrix.Invert(camera.get_transformation(GraphicsDevice))); this.mouseGrid = this.calculateMousegrid(this.original_point); @@ -706,38 +700,6 @@ //reset this.tilesDrawn = 0; - /* - var scale_factor = 1; - var x_adjust = scale_factor > 1 ? -scale_factor : 0; - var y_adjust = scale_factor > 1 ? -scale_factor/2 : 0; - - for (int y = y_adjust; y < this.squaresDown + y_adjust; y += scale_factor) - { - for (int x = x_adjust; x < this.squaresAcross + x_adjust; x += scale_factor) - { - int screenx = (x - y) * (Tile.TileSpriteWidth) / 2 - 3*scale_factor; - int screeny = (x + y) * (Tile.TileSpriteHeight) / 2; - - // if (this.cull(x, y)) - // { - batch.Draw( - Tile.TileSetTexture, - new Rectangle( - screenx, - screeny, - Tile.TileWidth * scale_factor, Tile.TileHeight * scale_factor), - Tile.GetSourceRectangle(1), - Color.White, - 0.0f, - Vector2.Zero, - SpriteEffects.None, - 0.9f); - - this.tilesDrawn++; - // } - } - }*/ - for (int i = 0; i < this.simulation.map.MapHeight; i++) { for (int j = 0; j < this.simulation.map.MapWidth; j += 1) @@ -910,22 +872,10 @@ else { drawTileAt(i, j, 122, 2); //122, 203, 221 } - // if ((i + j) % 8 == 0) - // { - // drawTileAt(i, j, 141, 2); - // } - // else - // { - // drawTileAt(i, j, 142, 2); - // } } else if (this.simulation.map.cells[i][j].Status == CellStatus.DeadTree) { drawTileAt(i, j, 141, 2); - // System.Console.WriteLine(String.Format("Drew Dead Tree at {0},{1}", i, j)); } - // else if (this.simulation.map.cells[i][j].Status == CellStatus.Water) { - // drawWaterTileAt(i, j, 1); - // } } } }