Example #1
0
        public void Draw(ITickEvent tickEvent)
        {
            IsDrawing = true;

            Systems.Draw(tickEvent);

            IsDrawing = false;
        }
Example #2
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)
        {
            _frameCounter.Update((float)gameTime.ElapsedGameTime.TotalSeconds);
            graphics.GraphicsDevice.Clear(_screen.BackgroundColor);

            _screen.Draw(spriteBatch);
            Systems.Draw(spriteBatch, _entities);
            _screen.DrawAfterEntities(spriteBatch);

            base.Draw(gameTime);
        }