+ * - 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:
@@ -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
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user