Esempio n. 1
0
        //put these in a seperate list later
        //Also only wont to kill the fires when all minifires when all the smoke is gone
        private void DrawFires(SpriteBatch spriteBatch)
        {
            if (miniFireCurrentBurning > 0)
            {
                //draw circles for the flame
                //however i think we will  have the flames as particles in our list
                Vector2 location = new Vector2((tileX * GroundLayerController.tileSize) + halfGridSquare, (tileY * GroundLayerController.tileSize) + halfGridSquare);

                for (int x = 0; x < gridSize; x++)
                {
                    for (int y = 0; y < gridSize; y++)
                    {
                        MiniFire miniFire = miniFireList[x, y];

                        if (miniFire != null)
                        {
                            miniFire.Draw(spriteBatch, new Vector2(location.X + (x * gridSquare), location.Y + (y * gridSquare)));
                        }
                    }
                }
            }
        }