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); }
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); }