+ * - Fixing path placement in Farseer

* Fixing rectangle placement in Farseer
+ * - Moving base.draw to last in AxiosGameScreen to make sure Farseer debug information is visible
This commit is contained in:
Nathan Adams
2012-05-13 22:20:50 -05:00
parent f57659e2e1
commit 33d46b0cd7
4 changed files with 10 additions and 8 deletions

View File

@@ -183,7 +183,7 @@ namespace Axios.Engine
public override void Draw(GameTime gameTime)
{
base.Draw(gameTime);
if (Level != null)
{
@@ -191,8 +191,8 @@ namespace Axios.Engine
{
Vector2 oldcameraposition = camera.Position;
camera.Position *= layer.ScrollSpeed;
ScreenManager.SpriteBatch.Begin(0, null, null, null, null, null, camera.matrix);
ScreenManager.SpriteBatch.Begin(0, null, null, null, null, null, Camera.View);
layer.draw(ScreenManager.SpriteBatch);
ScreenManager.SpriteBatch.End();
@@ -206,7 +206,7 @@ namespace Axios.Engine
foreach(AxiosUIObject g in (from x in _uiobjects orderby x.DrawOrder select x))
((IDrawableAxiosGameObject)g).Draw(this, gameTime);
//System.Diagnostics.Debugger.Break();
base.Draw(gameTime); //This is placed at the end so that Farseer debug information is visible
}