示例#1
0
        public static void Draw()
        {
            GameObjectManager.DrawObjects();
            ParticleManager.Draw();

            ((Camera)GameObjectManager.FindObjectWithTag("camera"))?.ResetCamera();

            if (Debug.debugMode)
            {
                pico8.Graphics.Rectfill(3, 119, 64, 125, 0);
                pico8.Graphics.Print(framerate.ToString("0.##"), 4, 120, 14);
                pico8.Graphics.Print(GameObjectManager.numberOfObjects, 32, 120, 14);
                pico8.Graphics.Print(TaskScheduler.numberOfTasks, 42, 120, 14);
                pico8.Graphics.Print(ParticleManager.numberOfParticles, 52, 120, 14);
            }

            ((Camera)GameObjectManager.FindObjectWithTag("camera"))?.RestoreCamera();
        }