Exemplo n.º 1
0
        /// <summary>
        /// This is called when the game should draw itself.
        /// </summary>
        /// <param name="gameTime">Provides a snapshot of timing values.</param>
        protected override void Draw(GameTime gameTime)
        {
            // TODO: Add your drawing code here
            spriteBatch.Begin();

            spriteBatch.Draw(background, mainFrame, Color.White);



            //for (int i = 0; i < 256; i++)
            //{
            //    nodeArray[i].Draw(spriteBatch);
            //}

            //The renderer can be asked to draw things in this section i.e. renderer.DrawEntities(spriteBatch).
            kObjectManager.CallRendererToDraw();
            particleEngine.Draw(spriteBatch);
            particleEngine2.Draw(spriteBatch);
            spriteBatch.End();
            base.Draw(gameTime);
        }