public override void Draw(GameTime gameTime, Renderer renderer)
        {
            base.Draw(gameTime, renderer);

            renderer.ClearScreen();

            tiledMap.Draw(gameTime, renderer);

            foreach (var agent in simulationManager.TrackedAgents)
            {
                agent.Draw(gameTime, renderer);
            }

            DrawActiveNodeCenters(renderer);
            DrawEmployeCollisionBoxes(renderer);

            userInterfaceManager.Draw(gameTime, renderer);
        }
Esempio n. 2
0
        public override void Draw(GameTime gameTime, Renderer renderer)
        {
            for (int x = -1; x <= MainGame.SCREEN_WIDTH_LOGICAL / textureBackgroundTile.Width; x++)
            {
                for (int y = -1; y <= MainGame.SCREEN_HEIGHT_LOGICAL / textureBackgroundTile.Height; y++)
                {
                    textureBackgroundTile.Draw((x + tileOffset) * textureBackgroundTile.Width, (y + tileOffset) * textureBackgroundTile.Height);
                }
            }

            base.Draw(gameTime, renderer);

            agentManager.Draw(gameTime, renderer);

            opponent.Draw(gameTime, renderer);

            bulletMoverManager.Draw(gameTime, renderer);

            userInterfaceManager.Draw(gameTime, renderer);
        }