Browse Source

more level decorations

GitOrigin-RevId: b6446a7451
master
Colin McMillen 4 years ago
parent
commit
c4e211e750
  1. 22
      Shared/Levels.cs
  2. 16
      Shared/World.cs

22
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
=================> <=============> <================================================================================================
..................~`~`~`...............^^^^.................................................................................................
..................======....................................................................................................................";

16
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) },
};
}

Loading…
Cancel
Save