Ejemplo n.º 1
0
        void OverworldInit(GameStates previous)
        {
            GameObjectManager.RemoveAllObjects();
            ParticleManager.RemoveAllParticles();

            GameManager.pico8.CartridgeLoader.Load("untitled1bitgame.p8");

            Vector2 playerPosition = Map.FindPlayerInMapSheet();

            GameObjectManager.AddObject(new Camera(playerPosition));
            GameObjectManager.AddObject(new Map(playerPosition));
            GameObjectManager.AddObject(new UI());
            GameObjectManager.AddObject(new ScreenTransition(1, () => { }, ScreenTransition.TransitionEffect.FadeIn));

            GameObjectManager.GlobalFillPattern = 0;
        }