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 @@ -7,7 +7,6 @@ using Microsoft.Xna.Framework.Media; - using System; using System.IO; using SpriteFontPlus; @@ -330,8 +329,6 @@ this.newsItems.AddRange(NewsItem.FromYaml(sr_pregenerated.ReadToEnd())); } this.simulation.LoadContent(this.newsItems, this.grammar); - // this.newsItems = this.newsItems.Select(s => s.Flatten(this.grammar)).ToList().Shuffle(); - this.remainingDialog = new Queue>(); @@ -345,8 +342,6 @@ this.budgetWindow = new BudgetWindow(new Budget { }, this.monoFont, 0, 0); Logging.Success("Content loaded."); - - } @@ -370,7 +365,6 @@ Vector2 calculateMousegrid(Vector2 normalizedMousePos) { - //int gridx = (int)(normalizedMousePos.X / Tile.TileSpriteWidth); //int gridy = (int)(normalizedMousePos.Y / Tile.TileSpriteHeight); Vector2 adjust = new Vector2(Tile.TileSpriteWidth / 2, Tile.TileSpriteHeight); @@ -424,9 +418,6 @@ return new Vector2(gridx, gridy); } */ - - - } @@ -441,8 +432,6 @@ float pitch = 0.0f; float pan = 0.0f; - - // Run game logic in here. Do NOT render anything here! KeyboardState keyboardCur = Keyboard.GetState(); #region input @@ -544,8 +533,6 @@ protected override void Draw(GameTime gameTime) { - // Render stuff in here. Do NOT run game logic in here! - frameCounter++; string fps = string.Format("fps: {0}", frameRate); @@ -811,15 +798,12 @@ if (this.showBudget) { budgetWindow.draw(batch); - } #endregion budget batch.End(); - - #region debug_window //Calcs for debug window: @@ -848,7 +832,6 @@ } */ - DebugInfo debugInfo = new DebugInfo { fps = this.frameRate, pastFps = past_fps.ToArray(), @@ -916,12 +899,9 @@ #endregion debug_window - - stopWatch.Stop(); this.drawTime = stopWatch.Elapsed; base.Draw(gameTime); } - } diff --git a/isometric-park-fna/isometric-park-fna.csproj b/isometric-park-fna/isometric-park-fna.csproj --- a/isometric-park-fna/isometric-park-fna.csproj +++ b/isometric-park-fna/isometric-park-fna.csproj @@ -96,6 +96,9 @@ PreserveNewest + + PreserveNewest + PreserveNewest