Added fullscreen toogling and fixed the game icon
This commit is contained in:
parent
4d3bfd1e91
commit
668868b839
10
Game1.cs
10
Game1.cs
@ -969,5 +969,15 @@ namespace WindowsPhoneSpeedyBlupi
|
||||
decor.MemorizeDoors(gameData);
|
||||
gameData.Write();
|
||||
}
|
||||
//public void SetFullScreen(bool isFullScreen)
|
||||
//{
|
||||
// this.graphics.IsFullScreen = isFullScreen;
|
||||
// graphics.ToggleFullScreen();
|
||||
//}
|
||||
public void ToggleFullScreen()
|
||||
{
|
||||
this.graphics.ToggleFullScreen();
|
||||
}
|
||||
public bool IsFullScreen() { return this.graphics.IsFullScreen; }
|
||||
}
|
||||
}
|
@ -277,7 +277,6 @@ namespace WindowsPhoneSpeedyBlupi
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
MouseState mouseState = Mouse.GetState();
|
||||
if (mouseState.LeftButton == ButtonState.Pressed)
|
||||
{
|
||||
@ -297,6 +296,11 @@ namespace WindowsPhoneSpeedyBlupi
|
||||
if (newState.IsKeyDown(Keys.Left)) touchesOrClicks.Add(createTinyPoint(-1, Misc.keyboardPressToInt(KeyboardPress.Left)));
|
||||
if (newState.IsKeyDown(Keys.Space)) touchesOrClicks.Add(createTinyPoint(-1, Misc.keyboardPressToInt(KeyboardPress.Space)));
|
||||
}
|
||||
if (newState.IsKeyDown(Keys.F11))
|
||||
{
|
||||
game1.ToggleFullScreen ();
|
||||
Debug.WriteLine("F11 was pressed.");
|
||||
}
|
||||
|
||||
Boolean keyPressedUp = false;
|
||||
Boolean keyPressedDown = false;
|
||||
|
@ -98,6 +98,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Content Include="icon.ico" />
|
||||
<Content Include="worlds\world001.txt">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
@ -335,10 +336,10 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="icon.ico">
|
||||
<LogicalName>icon.ico</LogicalName>
|
||||
<LogicalName>Icon.ico</LogicalName>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="icon.bmp">
|
||||
<LogicalName>icon.bmp</LogicalName>
|
||||
<LogicalName>Icon.bmp</LogicalName>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
Loading…
x
Reference in New Issue
Block a user