Esempio n. 1
0
 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);
 }
Esempio n. 2
0
        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);
                }
            }
        }
Esempio n. 3
0
        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);
            }
        }
Esempio n. 4
0
 public void Draw(SpriteBatch spriteBatch)
 {
     GroundLayer.Draw(spriteBatch);
     MiddleLayer.Draw(spriteBatch);
     TopLayer.Draw(spriteBatch);
 }
Esempio n. 5
0
 public void DrawBurntLayer(SpriteBatch spriteBatch)
 {
     burntLayer.Draw(spriteBatch, location);
 }