add more obstacles to world

GitOrigin-RevId: 4352f7ca81b437f2c49d91d0fa0d53ca544d5c2d
This commit is contained in:
Colin McMillen 2019-12-15 21:19:39 -05:00
parent 173efbf4ef
commit a58d9b0847

View File

@ -75,6 +75,12 @@ namespace Jumpy {
if (j == 3 && 15 < i && i < 19) {
terrain = Terrain.Grass;
}
if (j == 7 && i == 5) {
terrain = Terrain.Grass;
}
if (7 <= j && j <= 10 && i == 12) {
terrain = Terrain.Rock;
}
var position = new Rectangle(i * TileSize, j * TileSize, TileSize, TileSize);
tiles[i, j] = new Tile(texture, terrain, position);
}