Esempio n. 1
0
        public PitchPitch()
        {
            #region Events初期化
            Events.TargetFps     = 60;
            Events.Tick         += new EventHandler <TickEventArgs>(Tick);
            Events.Quit         += new EventHandler <QuitEventArgs>(Quit);
            Events.KeyboardDown += new EventHandler <KeyboardEventArgs>(KeyboardDown);
            #endregion

            #region 画面初期化
            Video.WindowCaption   = Properties.Resources.WindowTitle;
            _screen               = Video.SetVideoMode(Constants.ScreenWidth, Constants.ScreenHeight, false, false, false, true);
            _screen.AlphaBlending = true;
            #endregion

            _player = new gameobj.Player();

            initAudio();

            _currentScene = new scene.SceneTitle();
            _currentScene.Init(this);
        }
Esempio n. 2
0
        public PitchPitch()
        {
            #region Events初期化
            Events.TargetFps = 60;
            Events.Tick += new EventHandler<TickEventArgs>(Tick);
            Events.Quit += new EventHandler<QuitEventArgs>(Quit);
            Events.KeyboardDown += new EventHandler<KeyboardEventArgs>(KeyboardDown);
            #endregion

            #region 画面初期化
            Video.WindowCaption = Properties.Resources.WindowTitle;
            _screen = Video.SetVideoMode(Constants.ScreenWidth, Constants.ScreenHeight, false, false, false, true);
            _screen.AlphaBlending = true;
            #endregion

            _player = new gameobj.Player();

            initAudio();

            _currentScene = new scene.SceneTitle();
            _currentScene.Init(this);
        }