Exemplo n.º 1
0
        public Window()
        {
            loop = new GameLoop(this, 60, false, 60);
            InitializeComponent();

            this.SetStyle(System.Windows.Forms.ControlStyles.AllPaintingInWmPaint, true);
            this.SetStyle(System.Windows.Forms.ControlStyles.OptimizedDoubleBuffer, true) ;

            this.SetStyle(ControlStyles.FixedHeight, true);
            this.SetStyle(ControlStyles.FixedWidth, true);
            this.SetStyle(System.Windows.Forms.ControlStyles.UserPaint, true);
            this.SetTopLevel(true);
        }
Exemplo n.º 2
0
        void Start()
        {
            if (GameLoopManager.gameLoop == null)
            {
                GameLoopManager.gameLoop = new GameLoop(
                    new List <GameScene>()
                {
                    new CutsceneScene("Test", "DemoShortScene1"),
                    new CutsceneScene("Test", "DemoShortScene2"),
                    new SongScene("Metal", "story_by_brad_baker"),
                    new CutsceneScene("Test", "DemoShortScene3"),
                    new SongScene("Chiptune", "battle_mode"),
                }
                    );
            }

            SceneManager.sceneLoaded += doSceneSetup;
        }