render order complete

This commit is contained in:
Dylan Wilson
2015-08-07 21:50:21 +10:00
parent 2d478b5313
commit f317596b0d
8 changed files with 114 additions and 22 deletions
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.0" orientation="orthogonal" renderorder="left-down" width="3" height="3" tilewidth="25" tileheight="25" backgroundcolor="#a6527c" nextobjectid="1">
<tileset firstgid="1" name="test-tileset" tilewidth="32" tileheight="32" spacing="2" margin="2">
<image source="../../../../../Temp/test-tileset/test-tileset.png" width="104" height="104"/>
<image source="test-tileset.png" width="104" height="104"/>
</tileset>
<layer name="Tile Layer 1" width="3" height="3">
<data>
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.0" orientation="orthogonal" renderorder="left-up" width="3" height="3" tilewidth="25" tileheight="25" backgroundcolor="#a6527c" nextobjectid="1">
<tileset firstgid="1" name="test-tileset" tilewidth="32" tileheight="32" spacing="2" margin="2">
<image source="../../../../../Temp/test-tileset/test-tileset.png" width="104" height="104"/>
<image source="test-tileset.png" width="104" height="104"/>
</tileset>
<layer name="Tile Layer 1" width="3" height="3">
<data>
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.0" orientation="orthogonal" renderorder="right-down" width="3" height="3" tilewidth="25" tileheight="25" backgroundcolor="#a6527c" nextobjectid="1">
<tileset firstgid="1" name="test-tileset" tilewidth="32" tileheight="32" spacing="2" margin="2">
<image source="../../../../../Temp/test-tileset/test-tileset.png" width="104" height="104"/>
<image source="test-tileset.png" width="104" height="104"/>
</tileset>
<layer name="Tile Layer 1" width="3" height="3">
<data>
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.0" orientation="orthogonal" renderorder="right-up" width="3" height="3" tilewidth="25" tileheight="25" backgroundcolor="#a6527c" nextobjectid="1">
<tileset firstgid="1" name="test-tileset" tilewidth="32" tileheight="32" spacing="2" margin="2">
<image source="../../../../../Temp/test-tileset/test-tileset.png" width="104" height="104"/>
<image source="test-tileset.png" width="104" height="104"/>
</tileset>
<layer name="Tile Layer 1" width="3" height="3">
<data>
+2 -2
View File
@@ -44,7 +44,7 @@ namespace Sandbox
_camera = new Camera2D(_viewportAdapter)
{
Zoom = 1.5f,
//Position = new Vector2(900, 650)
Position = new Vector2(-200, -200)
};
Window.AllowUserResizing = true;
@@ -58,7 +58,7 @@ namespace Sandbox
_spriteBatch = new SpriteBatch(GraphicsDevice);
_backgroundTexture = Content.Load<Texture2D>("hills");
_bitmapFont = Content.Load<BitmapFont>("courier-new-32");
_tiledMap = Content.Load<TiledMap>("test-tileset-left-down");
_tiledMap = Content.Load<TiledMap>("test-tileset-right-down");
}
protected override void UnloadContent()