示例#1
0
 protected override void LoadComplete()
 {
     base.LoadComplete();
     beatmap.JudgementAngle = 30;
     beatmap.State          = GameState.Ready;
     beatmap.ChangeGameState(CurrentState = GameState.Ready);
 }
示例#2
0
        private void load()
        {
            beatmap = new Beatmap(128.0f)
            {
                Anchor = Anchor.Centre,
                Origin = Anchor.Centre
            };

            Add(beatmap);
            AddLabel("GameState");
            AddStep("GameState.Ready", () => beatmap.ChangeGameState(GameState.Ready));
            AddStep("GameState.Playing", () => beatmap.ChangeGameState(GameState.Playing));
            AddStep("Add Tile", () => beatmap.AddTile());
            AddWaitStep("Waiting for 1000ms", 5);
            AddStep("Change Origin", () => beatmap.Tap());
            AddStep("Move Camera", () => beatmap.Move());
            AddStep("Remove Tile", () => beatmap.DelTile());
            AddStep("GameState.GameOver", () => beatmap.ChangeGameState(GameState.GameOver));
        }