public void Draw(GameTime gameTime, SpriteBatch spriteBatch, Camera camera) { GroundLayer?.Draw(gameTime, spriteBatch, TileSet, camera); EdgeLayer?.Draw(gameTime, spriteBatch, TileSet, camera); BuildingLayer?.Draw(gameTime, spriteBatch, TileSet, camera); DecorationLayer?.Draw(gameTime, spriteBatch, TileSet, camera); }
public void Draw(SpriteBatch spriteBatch) { // Vector2 location = new Vector2((tileX * GroundLayerController.tileSize) + GroundLayerController.halfTileSize, (tileY * GroundLayerController.tileSize) + GroundLayerController.halfTileSize); baseLayer.Draw(spriteBatch, location); /* int textn = (int)baseLayer.layerType; * * SpriteFont spriteFont = GraphicsManager.GetSpriteFont(Engine.Font.Anita26); * spriteBatch.DrawString(spriteFont, textn.ToString(), location, Color.White, 0f, Vector2.One, 1f, SpriteEffects.None, 0);*/ if (layerList != null) { for (int i = 0; i < layerList.Length; i++) { layerList[i].Draw(spriteBatch, location); } } }
public void Draw(GameTime gameTime, SpriteBatch spriteBatch, Camera camera) { if (GroundLayer != null) { GroundLayer.Draw(gameTime, spriteBatch, TileSet, camera); } if (EdgeLayer != null) { EdgeLayer.Draw(gameTime, spriteBatch, TileSet, camera); } if (BuildingLayer != null) { BuildingLayer.Draw(gameTime, spriteBatch, TileSet, camera); } if (DecorationLayer != null) { DecorationLayer.Draw(gameTime, spriteBatch, TileSet, camera); } }
public void Draw(SpriteBatch spriteBatch) { GroundLayer.Draw(spriteBatch); MiddleLayer.Draw(spriteBatch); TopLayer.Draw(spriteBatch); }
public void DrawBurntLayer(SpriteBatch spriteBatch) { burntLayer.Draw(spriteBatch, location); }