コード例 #1
0
 public override void Draw(GameTime gameTime, SpriteBatch batch)
 {
     base.Draw(gameTime, batch);
     device.Clear(Color.Green);
     state.Draw(gameTime, batch);
     log.Draw(gameTime, batch);
 }
コード例 #2
0
        public override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.CornflowerBlue);

            spriteBatch.Begin(transformMatrix: camera.GetViewMatrix(), samplerState: SamplerState.PointClamp);
            mapRenderer.Draw(camera.GetViewMatrix());

            foreach (var obj in world.GetGameObjects())
            {
                obj.Draw(spriteBatch);
            }

            spriteBatch.End();

            spriteBatch.Begin();

            GameLog.Draw(spriteBatch);

            spriteBatch.End();
        }