|
|
@ -15,6 +15,7 @@ namespace Jumpy { |
|
|
|
|
|
|
|
public JumpyGame() { |
|
|
|
graphics = new GraphicsDeviceManager(this); |
|
|
|
IsMouseVisible = true; |
|
|
|
Content.RootDirectory = "Content"; |
|
|
|
} |
|
|
|
|
|
|
@ -22,6 +23,7 @@ namespace Jumpy { |
|
|
|
protected override void Initialize() { |
|
|
|
window = (IWindow) Services.GetService(typeof(IWindow)); |
|
|
|
window.SetFullScreen(fullScreen, this, graphics); |
|
|
|
|
|
|
|
base.Initialize(); |
|
|
|
} |
|
|
|
|
|
|
@ -42,8 +44,8 @@ namespace Jumpy { |
|
|
|
List<Keys> keysDown = keyboardInput.NewKeysDown(); |
|
|
|
|
|
|
|
if (keysDown.Contains(Keys.F12)) { |
|
|
|
window.SetFullScreen(!fullScreen, this, graphics); |
|
|
|
fullScreen = !fullScreen; |
|
|
|
window.SetFullScreen(fullScreen, this, graphics); |
|
|
|
} |
|
|
|
|
|
|
|
if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || |
|
|
|