From 59db20fb2a02bb5bca8e7d92e16a42e0ff89ef1a Mon Sep 17 00:00:00 2001 From: Simon Holmberg Date: Thu, 27 Sep 2012 17:37:40 +0200 Subject: [PATCH] Added collision sprite sheet --- DepthsBelow/DepthsBelow/Map.cs | 4 + .../DepthsBelowContent.contentproj | 7 ++ DepthsBelow/DepthsBelowContent/maps/test.tmx | 107 ++++++++++++++++++ .../maps/tilesets/collision.png | Bin 0 -> 2826 bytes .../MapProcessor.cs | 2 + 5 files changed, 120 insertions(+) create mode 100755 DepthsBelow/DepthsBelowContent/maps/tilesets/collision.png diff --git a/DepthsBelow/DepthsBelow/Map.cs b/DepthsBelow/DepthsBelow/Map.cs index b3618d3..0ec34f0 100755 --- a/DepthsBelow/DepthsBelow/Map.cs +++ b/DepthsBelow/DepthsBelow/Map.cs @@ -15,6 +15,7 @@ namespace DepthsBelow { public int Width; public int Height; + public string Name; public Tile[] Tiles; } @@ -28,6 +29,9 @@ namespace DepthsBelow { foreach (var layer in Layers) { + if (layer.Name == "Collision") + continue; + for (int y = 0; y < layer.Height; y++) { for (int x = 0; x < layer.Width; x++) diff --git a/DepthsBelow/DepthsBelowContent/DepthsBelowContent.contentproj b/DepthsBelow/DepthsBelowContent/DepthsBelowContent.contentproj index 2e70a1d..47bf06b 100644 --- a/DepthsBelow/DepthsBelowContent/DepthsBelowContent.contentproj +++ b/DepthsBelow/DepthsBelowContent/DepthsBelowContent.contentproj @@ -77,6 +77,13 @@ TextureProcessor + + + collision + TextureImporter + TextureProcessor + +