Example #1
0
        /// <summary>
        /// This function should eventually draw all objects in the camera's view to the spritebatch.
        /// </summary>
        /// <param name="currentCamera"></param>
        public void DrawScreen(Camera currentCamera)
        {
            for (int i = 0; i < Tiles.Length; i++)
            {
                for (int j = 0; j < Tiles[0].Length; j++)
                {
                    if (TileIsInCamera(Tiles[i][j]))
                    {
                        //Draw tile here.
                    }
                }
            }

            foreach (GameObject obj in EnclosedObjects)
            {
                obj.Draw();
            }
        }
Example #2
0
 public abstract void Draw(Camera camera);