Exemplo n.º 1
0
 protected override void OnUpdated()
 {
     if (asd.Engine.Keyboard.GetKeyState(asd.Keys.Enter) == asd.KeyState.Push || DualShockController.IsJoystickPush(2))
     {
         int t = Button.CurrentRow;
         if (t == 0)
         {
             if (Mute)
             {
                 SoundsController.StartMusic();
             }
             else
             {
                 SoundsController.StopMusic();
             }
             Mute = !Mute;
         }
         else if (t == 1)
         {
             asd.Engine.ChangeScene(new MakingSelectScene());
         }
         else if (t == 2)
         {
             asd.Engine.ChangeScene(new ExcelSelect(false));
         }
     }
 }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            WindowSizeX   = (int)(1600 * Adjustment);
            WindowSizeY   = (int)(900 * Adjustment);
            CellLarge     = WindowSizeX / 32;
            StageFileName = "stage";
            asd.Engine.Initialize("ASB", WindowSizeX, WindowSizeY, new asd.EngineOption());
            asd.Engine.File.AddRootDirectory("resource/");
            SoundsController.SoundBGM();
            TitleScene scene = new TitleScene();

            asd.Engine.ChangeSceneWithTransition(scene, new asd.TransitionFade(0, 0));

            while (asd.Engine.DoEvents())
            {
                if (asd.Engine.Keyboard.GetKeyState(asd.Keys.Escape) == asd.KeyState.Push)
                {
                    break;
                }
                asd.Engine.Update();
            }
            asd.Engine.Terminate();
        }