From c4e211e7508e8cadf4e96cab22b267faaaef39d4 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Thu, 20 Feb 2020 13:23:57 -0500 Subject: [PATCH] more level decorations GitOrigin-RevId: b6446a7451f877fc7c46a35a49d450dd1f3b9c26 --- Shared/Levels.cs | 22 +++++++++++----------- Shared/World.cs | 16 ++++++++++++++++ 2 files changed, 27 insertions(+), 11 deletions(-) diff --git a/Shared/Levels.cs b/Shared/Levels.cs index 31eedcf..25efac6 100644 --- a/Shared/Levels.cs +++ b/Shared/Levels.cs @@ -5,19 +5,19 @@ }; public const string DEMO = @" -1 +7 <=============> +6 { { { } { ; +5 } ; ; ; } +4 } ; } +3 } 2 -3 -4 -5 -6 -7 -8 <=X=X=X=> <=============> (__________) -9 / \ -0 | | -1 | | +1 +0 <=X=X=X=> <=============> (__________) +5 / \ +4 | | +3 | | 2 | | -3 dfffxfffxfffb dfffxfffxfffb v v +w wr wqw t wew ww dfffxfffxfffb v twq r wtwv =================> <=============> <================================================================================================ ..................~`~`~`...............^^^^................................................................................................. ..................======...................................................................................................................."; diff --git a/Shared/World.cs b/Shared/World.cs index 8bab157..d0ac23b 100644 --- a/Shared/World.cs +++ b/Shared/World.cs @@ -38,6 +38,14 @@ namespace SemiColinGames { public static Terrain Fence = new Terrain('f', false); public static Terrain FencePost = new Terrain('x', false); public static Terrain FenceR = new Terrain('b', false); + public static Terrain VineTop = new Terrain('{', false); + public static Terrain VineMid = new Terrain(';', false); + public static Terrain VineBottom = new Terrain('}', false); + public static Terrain GrassTall = new Terrain('q', false); + public static Terrain GrassShort = new Terrain('w', false); + public static Terrain Shoots = new Terrain('e', false); + public static Terrain Bush = new Terrain('r', false); + public static Terrain Mushroom = new Terrain('t', false); public bool IsObstacle { get; private set; } @@ -87,6 +95,14 @@ namespace SemiColinGames { { Terrain.Fence, GetTextureSource(Textures.Grassland, 6, 4) }, { Terrain.FencePost, GetTextureSource(Textures.Grassland, 7, 4) }, { Terrain.FenceR, GetTextureSource(Textures.Grassland, 8, 4) }, + { Terrain.VineTop, GetTextureSource(Textures.Ruins, 12, 5) }, + { Terrain.VineMid, GetTextureSource(Textures.Ruins, 12, 6) }, + { Terrain.VineBottom, GetTextureSource(Textures.Ruins, 12, 7) }, + { Terrain.GrassTall, GetTextureSource(Textures.Grassland, 13, 0) }, + { Terrain.GrassShort, GetTextureSource(Textures.Grassland, 14, 0) }, + { Terrain.Shoots, GetTextureSource(Textures.Grassland, 15, 0) }, + { Terrain.Bush, GetTextureSource(Textures.Grassland, 13, 2) }, + { Terrain.Mushroom, GetTextureSource(Textures.Grassland, 17, 2) }, }; }