Beispiel #1
0
 public static Vector2 GetCentre()
 {
     return(new Vector2(WizardGrenadeGame.GetScreenWidth() / 2, WizardGrenadeGame.GetScreenHeight() / 2));
 }
Beispiel #2
0
 public static int ScreenHeight()
 {
     return(WizardGrenadeGame.GetScreenHeight());
 }
Beispiel #3
0
 public static int ScreenWidth()
 {
     return(WizardGrenadeGame.GetScreenWidth());
 }
Beispiel #4
0
 public static float GetVerticalCentre(int objectHeight)
 {
     return((WizardGrenadeGame.GetScreenHeight() - objectHeight) / 2);
 }
Beispiel #5
0
 public static float GetHorizontalCentre(int objectWidth)
 {
     return((WizardGrenadeGame.GetScreenWidth() - objectWidth) / 2);
 }
Beispiel #6
0
 static void Main()
 {
     using (var game = new WizardGrenadeGame())
         game.Run();
 }