Experimental selection code

This commit is contained in:
Simon Holmberg
2012-09-24 23:52:41 +02:00
parent afd91227a4
commit d52f1e5ef5
4 changed files with 73 additions and 2 deletions
+8 -1
View File
@@ -19,7 +19,8 @@ namespace DepthsBelow
GraphicsDeviceManager graphics;
SpriteBatch spriteBatch;
Camera camera;
public Camera camera;
MouseControl mouse;
Soldier soldier;
public Core()
@@ -59,6 +60,9 @@ namespace DepthsBelow
// TODO: use this.Content to load your game content here
Soldier.LoadContent(this);
soldier = new Soldier(this);
mouse = new MouseControl(this);
mouse.LoadContent();
}
/// <summary>
@@ -82,6 +86,7 @@ namespace DepthsBelow
this.Exit();
camera.Update(gameTime);
mouse.Update(gameTime);
// TODO: Add your update logic here
soldier.Update(gameTime);
@@ -104,6 +109,8 @@ namespace DepthsBelow
if (rc != null)
rc.Draw(spriteBatch);
mouse.Draw(spriteBatch);
spriteBatch.End();
base.Draw(gameTime);