コード例 #1
0
 public DanceScene(String scriptname)
 {
     this.script = ContentScript.FromFile(scriptname);
     this.textures = new TextureContext();
     this.sequences = new DanceSequenceProtocol();
     this.background = new DanceBackground();
     this.ui = new IngameUI();
 }
コード例 #2
0
ファイル: IngameUI.cs プロジェクト: RavenNevermore/Omnom-III
        public void initialize(
                ContentUtil content, 
                DanceSequenceProtocol protocol, 
                float beatTimeInMS,
                float uiSpeed)
        {
            this.beatTimeInMs = beatTimeInMS;
            this.initHud(content, uiSpeed);

            this.errorSound = new Sound("hud/error_move", content);
            this.successSound = null;// new Sound("hud/success_move");
            this.seqSuccessSound = new RandomSound("hud/perfect", 10, content);

            float bpms = 1 / beatTimeInMS;
            foreach (DanceSequence.Input input in protocol.handicaps) {
                if (!this.hud.ContainsKey(input.handicap))
                    continue;

                this.hud[input.handicap].prerecord(input.startTime(bpms), Color.Orange);
            }

            this.transitions.initialize(content, protocol, beatTimeInMS);
        }