コード例 #1
0
        public virtual void Draw(Vector2 a_offset)
        {
            _tiledBackground.Draw(Vector2.Zero);

            _grid.DrawGrid(_offset, "BackgroundLayer");

            MainCharacter.Draw(_offset);

            foreach (Projectile proj in _projectiles)
            {
                proj.Draw(_offset);
            }

            foreach (Projectile proj in _enemyProjectiles)
            {
                proj.Draw(_offset);
            }

            foreach (Npc npc in _npcs)
            {
                npc.Draw(_offset);
            }

            _grid.DrawGrid(_offset, "TileLayer");

            foreach (Effect effect in _effects)
            {
                effect.Draw(_offset);
            }

            _ui.Draw(this);
        }