Пример #1
0
 public void Display(PlanetParameters planetParams)
 {
     this.planetParams = planetParams;
     planet.GeneratePlanet(planetParams);
     solarLight.GenerateStar(planetParams);
     ApplicationState.singleton.data.activePlanet = planetParams.planetSeed;
     hud.Draw(planetParams);
 }
Пример #2
0
        public void Draw(SpriteBatch spriteBatch, GameTime gameTime, float viewWidth, float viewHeight, float zoom, float downwardOffset)
        {
            Matrix transformation = GetTransformation(GameManager.Instance.GetMarios()[playerIndex], viewWidth, viewHeight, zoom, downwardOffset);

            spriteBatch.Begin(transformMatrix: transformation);
            foreach (IGameObject next in GameManager.Instance.GetAllObjectsInDrawOrder())
            {
                next.Draw(spriteBatch);
            }
            spriteBatch.End();
            interval = (int)viewWidth / 4;
            HUD.Draw(spriteBatch, interval);
        }
Пример #3
0
        public override void Draw(GameTime gameTime)
        {
            DemoGame.graphics.GraphicsDevice.Clear(Color.CornflowerBlue);

            context.lvl.Draw(spriteBatch, camera);

            hud.Draw(spriteBatch, gameTime);

            if (settings.debugMode)
            {
                context.lvl.DrawDebug(spriteBatch, font, camera);
                DebugMonitor.Draw(spriteBatch);
            }

            base.Draw(gameTime);
        }