diff -r 4ddbdd33fc18a3ee330d3b15b1eb298562c76e06 -r e88d15c149abfe4c53ad2a1674c7ca1b383ab13b axios/Axios_settings.cs --- a/axios/Axios_settings.cs Sat May 12 22:02:23 2012 -0500 +++ b/axios/Axios_settings.cs Sun May 13 22:20:50 2012 -0500 @@ -76,6 +76,8 @@ * - Adding support to load a Gleed2D level from a stream * - Adjusting units for Gleed2D position for Farseer bodies * - Modfying draw method in AxiosGameScreen to draw Gleed2D textures + * - Fixing path placement in Farseer + * - Moving base.draw to last in AxiosGameScreen to make sure Farseer debug information is visible * */ diff -r 4ddbdd33fc18a3ee330d3b15b1eb298562c76e06 -r e88d15c149abfe4c53ad2a1674c7ca1b383ab13b axios/Engine/AxiosGameScreen.cs --- a/axios/Engine/AxiosGameScreen.cs Sat May 12 22:02:23 2012 -0500 +++ b/axios/Engine/AxiosGameScreen.cs Sun May 13 22:20:50 2012 -0500 @@ -183,7 +183,7 @@ public override void Draw(GameTime gameTime) { - base.Draw(gameTime); + if (Level != null) { @@ -191,8 +191,8 @@ { 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 @@ 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 } diff -r 4ddbdd33fc18a3ee330d3b15b1eb298562c76e06 -r e88d15c149abfe4c53ad2a1674c7ca1b383ab13b axios/Engine/Gleed2D/PathItem.cs --- a/axios/Engine/Gleed2D/PathItem.cs Sat May 12 22:02:23 2012 -0500 +++ b/axios/Engine/Gleed2D/PathItem.cs Sun May 13 22:20:50 2012 -0500 @@ -30,8 +30,8 @@ { base.load(cm, world, ref cache); - Vertices v = new Vertices(WorldPoints.Length); - foreach (Vector2 vec in WorldPoints) + Vertices v = new Vertices(LocalPoints.Length); + foreach (Vector2 vec in LocalPoints) v.Add(new Vector2(ConvertUnits.ToSimUnits(vec.X), ConvertUnits.ToSimUnits(vec.Y))); _body = BodyFactory.CreateLoopShape(world, v); diff -r 4ddbdd33fc18a3ee330d3b15b1eb298562c76e06 -r e88d15c149abfe4c53ad2a1674c7ca1b383ab13b axios/Engine/Gleed2D/RectangleItem.cs --- a/axios/Engine/Gleed2D/RectangleItem.cs Sat May 12 22:02:23 2012 -0500 +++ b/axios/Engine/Gleed2D/RectangleItem.cs Sun May 13 22:20:50 2012 -0500 @@ -28,8 +28,8 @@ { base.load(cm, world, ref cache); - _body = BodyFactory.CreateRectangle(world, Width, Height, 1f); - _body.Position = ConvertUnits.ToSimUnits(Position); + _body = BodyFactory.CreateRectangle(world, ConvertUnits.ToSimUnits(Width), ConvertUnits.ToSimUnits(Height), 1f); + _body.Position = ConvertUnits.ToSimUnits(Position) + new Vector2(ConvertUnits.ToSimUnits(Width)/2, ConvertUnits.ToSimUnits(Height)/2); _body.UserData = this; } }