/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (CannonGame game = new CannonGame()) { game.Run(); } }
public CannonGame() { Graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; Graphics.PreferredBackBufferWidth = 480; Graphics.PreferredBackBufferHeight = 800; //Gjør musepekeren synlig IsMouseVisible = true; //Dette gjør at telefonen fungerer i begge landskapsmodusene. Graphics.SupportedOrientations = DisplayOrientation.Portrait; Instance = this; }