]> git.r.bdr.sh - rbdr/super-polarity/blobdiff - SuperPolarity/SuperPolarity.cs
Consolidate with mac project.
[rbdr/super-polarity] / SuperPolarity / SuperPolarity.cs
index 9311d5311c59c371127f151afdf51821761f9b60..12303a0c8dcd72f025233c58664fc6dce3109b82 100644 (file)
@@ -10,6 +10,7 @@ using Microsoft.Xna.Framework.GamerServices;
 using Microsoft.Xna.Framework.Media;
 using Microsoft.Xna.Framework.Audio;
 using SuperPolarity;
+using Tao.Sdl;
 #endregion
 
 namespace SuperPolarity
@@ -38,11 +39,6 @@ namespace SuperPolarity
             graphics = new GraphicsDeviceManager(this);
             Components.Add(new GamerServicesComponent(this));
 
-            graphics.PreferMultiSampling = true;
-            graphics.PreferredBackBufferWidth = 1280;
-            graphics.PreferredBackBufferHeight = 720;
-            graphics.ToggleFullScreen();
-
             Content.RootDirectory = "Content";
             ActorFactory.SetGame(this);
             ParticleEffectFactory.SetGame(this);
@@ -62,6 +58,11 @@ namespace SuperPolarity
         {
             base.Initialize();
 
+            graphics.PreferMultiSampling = true;
+                       graphics.PreferredBackBufferHeight = 720;
+            graphics.PreferredBackBufferWidth = 1280;
+            //graphics.ToggleFullScreen();
+
             InputController.RegisterEventForKey("fullScreenToggle", Keys.F11);
             InputController.Bind("fullScreenToggle", HandleFullScreenToggle);
 
@@ -84,7 +85,7 @@ namespace SuperPolarity
         {
 
             MediaPlayer.IsRepeating = true;
-            GameSong = Content.Load<Song>("Sound\\polaritytheme.wav");
+            GameSong = Content.Load<Song>("Sound\\polaritytheme");
             GameOverSound = Content.Load<SoundEffect>("Sound\\gameover");
 
             // Create a new SpriteBatch, which can be used to draw textures.