electricity bugfixes, destructable doors, ai improvements, removed rope, container changes

This commit is contained in:
Regalis
2015-05-27 01:02:30 +03:00
parent a1196d1876
commit 80648ffd46
51 changed files with 701 additions and 509 deletions
+11 -4
View File
@@ -45,6 +45,9 @@ namespace Subsurface
public static Random localRandom;
public static Random random;
private Stopwatch renderTimer;
public static int renderTimeElapsed;
public Camera Cam
{
@@ -78,6 +81,8 @@ namespace Subsurface
frameCounter = new FrameCounter();
renderTimer = new Stopwatch();
IsMouseVisible = true;
IsFixedTimeStep = false;
@@ -197,16 +202,18 @@ namespace Subsurface
/// <summary>
/// This is called when the game should draw itself.
/// </summary>
/// <param name="deltaTime">elapsed time in seconds</param>
protected override void Draw(GameTime gameTime)
{
//System.Diagnostics.Debug.WriteLine(deltaTime);
//System.Diagnostics.Debug.WriteLine(gameTime.ElapsedGameTime.TotalSeconds);
renderTimer.Restart();
double deltaTime = gameTime.ElapsedGameTime.TotalSeconds;
frameCounter.Update(deltaTime);
Screen.Selected.Draw(deltaTime, GraphicsDevice, spriteBatch);
Screen.Selected.Draw(deltaTime, GraphicsDevice, spriteBatch);
renderTimeElapsed = (int)renderTimer.Elapsed.Ticks;
renderTimer.Stop();
}
protected override void OnExiting(object sender, EventArgs args)