]> git.r.bdr.sh - rbdr/super-polarity/commitdiff
Works in win, compiles in mac
authorBen Beltran <redacted>
Tue, 11 Feb 2014 04:14:10 +0000 (22:14 -0600)
committerBen Beltran <redacted>
Tue, 11 Feb 2014 04:14:10 +0000 (22:14 -0600)
29 files changed:
SuperPolarity.userprefs
SuperPolarity/Content/Sound/bomb.xnb [new file with mode: 0644]
SuperPolarity/Content/Sound/bullet.xnb [new file with mode: 0644]
SuperPolarity/Content/Sound/gameover.xnb [new file with mode: 0644]
SuperPolarity/Content/Sound/hit.xnb [new file with mode: 0644]
SuperPolarity/Content/Sound/life.xnb [new file with mode: 0644]
SuperPolarity/Content/Sound/polaritychange.xnb [new file with mode: 0644]
SuperPolarity/Content/Sound/polaritytheme.wma [new file with mode: 0644]
SuperPolarity/Content/Sound/polaritytheme.xnb [new file with mode: 0644]
SuperPolarity/Properties/AssemblyInfo.cs
SuperPolarity/SuperPolarity.cs
SuperPolarity/SuperPolarity.csproj
SuperPolarityContent/SuperPolarityContentContent/Sound/bomb.wav [moved from SuperPolarity/Content/Sound/bomb.wav with 100% similarity]
SuperPolarityContent/SuperPolarityContentContent/Sound/bullet.wav [moved from SuperPolarity/Content/Sound/bullet.wav with 100% similarity]
SuperPolarityContent/SuperPolarityContentContent/Sound/gameover.wav [moved from SuperPolarity/Content/Sound/gameover.wav with 100% similarity]
SuperPolarityContent/SuperPolarityContentContent/Sound/hit.wav [moved from SuperPolarity/Content/Sound/hit.wav with 100% similarity]
SuperPolarityContent/SuperPolarityContentContent/Sound/life.wav [moved from SuperPolarity/Content/Sound/life.wav with 100% similarity]
SuperPolarityContent/SuperPolarityContentContent/Sound/polaritychange.wav [moved from SuperPolarity/Content/Sound/polaritychange.wav with 100% similarity]
SuperPolarityContent/SuperPolarityContentContent/SuperPolarityContentContent.contentproj
SuperPolarityMac/Content/logo.png [new file with mode: 0644]
SuperPolarityMac/Game1.cs [new file with mode: 0644]
SuperPolarityMac/Info.plist [new file with mode: 0644]
SuperPolarityMac/Main.cs [new file with mode: 0644]
SuperPolarityMac/Program.cs
SuperPolarityMac/Project.cs [new file with mode: 0644]
SuperPolarityMac/Properties/AssemblyInfo.cs [new file with mode: 0644]
SuperPolarityMac/SuperPolarityMac.csproj
SuperPolarityMac/SuperPolarityMac.sln [new file with mode: 0644]
SuperPolarityMac/SuperPolarityMac.userprefs [new file with mode: 0644]

index 943644f45c222d3c481b78c2ec680a666766a777..2c82115c073ad409d6f2dcf5cf2519276783470c 100644 (file)
@@ -1,8 +1,11 @@
-<Properties>
+<Properties MonoDevelop.MonoMac.LastXamMacNagTime="2/7/2014 5:17:50 AM">
   <MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
   <MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
-  <MonoDevelop.Ide.Workbench ActiveDocument="SuperPolarity/Properties/AssemblyInfo.cs">
+  <MonoDevelop.Ide.Workbench ActiveDocument="SuperPolarityMac/SuperPolarity.cs">
     <Files>
     <Files>
-      <File FileName="SuperPolarity/Properties/AssemblyInfo.cs" Line="9" Column="34" />
+      <File FileName="SuperPolarity/Program.cs" Line="1" Column="1" />
+      <File FileName="SuperPolarityMac/Program.cs" Line="1" Column="1" />
+      <File FileName="SuperPolarity/SuperPolarity.cs" Line="1" Column="1" />
+      <File FileName="SuperPolarityMac/SuperPolarity.cs" Line="98" Column="22" />
     </Files>
   </MonoDevelop.Ide.Workbench>
   <MonoDevelop.Ide.DebuggingService.Breakpoints>
     </Files>
   </MonoDevelop.Ide.Workbench>
   <MonoDevelop.Ide.DebuggingService.Breakpoints>
diff --git a/SuperPolarity/Content/Sound/bomb.xnb b/SuperPolarity/Content/Sound/bomb.xnb
new file mode 100644 (file)
index 0000000..71b6dd1
Binary files /dev/null and b/SuperPolarity/Content/Sound/bomb.xnb differ
diff --git a/SuperPolarity/Content/Sound/bullet.xnb b/SuperPolarity/Content/Sound/bullet.xnb
new file mode 100644 (file)
index 0000000..2b59972
Binary files /dev/null and b/SuperPolarity/Content/Sound/bullet.xnb differ
diff --git a/SuperPolarity/Content/Sound/gameover.xnb b/SuperPolarity/Content/Sound/gameover.xnb
new file mode 100644 (file)
index 0000000..8afc574
Binary files /dev/null and b/SuperPolarity/Content/Sound/gameover.xnb differ
diff --git a/SuperPolarity/Content/Sound/hit.xnb b/SuperPolarity/Content/Sound/hit.xnb
new file mode 100644 (file)
index 0000000..52af38d
Binary files /dev/null and b/SuperPolarity/Content/Sound/hit.xnb differ
diff --git a/SuperPolarity/Content/Sound/life.xnb b/SuperPolarity/Content/Sound/life.xnb
new file mode 100644 (file)
index 0000000..3c1cad8
Binary files /dev/null and b/SuperPolarity/Content/Sound/life.xnb differ
diff --git a/SuperPolarity/Content/Sound/polaritychange.xnb b/SuperPolarity/Content/Sound/polaritychange.xnb
new file mode 100644 (file)
index 0000000..2cfbc68
Binary files /dev/null and b/SuperPolarity/Content/Sound/polaritychange.xnb differ
diff --git a/SuperPolarity/Content/Sound/polaritytheme.wma b/SuperPolarity/Content/Sound/polaritytheme.wma
new file mode 100644 (file)
index 0000000..e4ea8b8
Binary files /dev/null and b/SuperPolarity/Content/Sound/polaritytheme.wma differ
diff --git a/SuperPolarity/Content/Sound/polaritytheme.xnb b/SuperPolarity/Content/Sound/polaritytheme.xnb
new file mode 100644 (file)
index 0000000..d2c29f9
Binary files /dev/null and b/SuperPolarity/Content/Sound/polaritytheme.xnb differ
index bd24ce8a093cbad4391d30b0dd2c0d72c0a76423..daa34e82b9dbe39fcac5c4a8d9b6d1eb3eae5c38 100644 (file)
@@ -10,7 +10,7 @@ using System.Runtime.InteropServices;
 [assembly: AssemblyConfiguration("")]
 [assembly: AssemblyDescription("")]
 [assembly: AssemblyCompany("")]
 [assembly: AssemblyConfiguration("")]
 [assembly: AssemblyDescription("")]
 [assembly: AssemblyCompany("")]
-[assembly: AssemblyCopyright("Copyright ©  2013")]
+[assembly: AssemblyCopyright("Copyright ©  2014")]
 [assembly: AssemblyTrademark("")]
 [assembly: AssemblyCulture("")]
 
 [assembly: AssemblyTrademark("")]
 [assembly: AssemblyCulture("")]
 
index 9311d5311c59c371127f151afdf51821761f9b60..f5ff48eb7f8655be759875f699e979ca91a19b44 100644 (file)
@@ -10,6 +10,7 @@ using Microsoft.Xna.Framework.GamerServices;
 using Microsoft.Xna.Framework.Media;
 using Microsoft.Xna.Framework.Audio;
 using SuperPolarity;
 using Microsoft.Xna.Framework.Media;
 using Microsoft.Xna.Framework.Audio;
 using SuperPolarity;
+using Tao.Sdl;
 #endregion
 
 namespace SuperPolarity
 #endregion
 
 namespace SuperPolarity
@@ -41,7 +42,7 @@ namespace SuperPolarity
             graphics.PreferMultiSampling = true;
             graphics.PreferredBackBufferWidth = 1280;
             graphics.PreferredBackBufferHeight = 720;
             graphics.PreferMultiSampling = true;
             graphics.PreferredBackBufferWidth = 1280;
             graphics.PreferredBackBufferHeight = 720;
-            graphics.ToggleFullScreen();
+            //graphics.ToggleFullScreen();
 
             Content.RootDirectory = "Content";
             ActorFactory.SetGame(this);
 
             Content.RootDirectory = "Content";
             ActorFactory.SetGame(this);
index 76124b756e3292f2ac750a2430ecfac3056a7ff9..aa96e8a9da54837f8129eb8c9a6816c29ae43d84 100644 (file)
     <RootNamespace>SuperPolarity</RootNamespace>
     <AssemblyName>SuperPolarity</AssemblyName>
     <FileAlignment>512</FileAlignment>
     <RootNamespace>SuperPolarity</RootNamespace>
     <AssemblyName>SuperPolarity</AssemblyName>
     <FileAlignment>512</FileAlignment>
+    <PublishUrl>publish\</PublishUrl>
+    <Install>true</Install>
+    <InstallFrom>Disk</InstallFrom>
+    <UpdateEnabled>false</UpdateEnabled>
+    <UpdateMode>Foreground</UpdateMode>
+    <UpdateInterval>7</UpdateInterval>
+    <UpdateIntervalUnits>Days</UpdateIntervalUnits>
+    <UpdatePeriodically>false</UpdatePeriodically>
+    <UpdateRequired>false</UpdateRequired>
+    <MapFileExtensions>true</MapFileExtensions>
+    <ApplicationRevision>0</ApplicationRevision>
+    <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
+    <IsWebBootstrapper>false</IsWebBootstrapper>
+    <UseApplicationTrust>false</UseApplicationTrust>
+    <BootstrapperEnabled>true</BootstrapperEnabled>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
     <PlatformTarget>x86</PlatformTarget>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
     <PlatformTarget>x86</PlatformTarget>
   <PropertyGroup>
     <ApplicationIcon>Icon.ico</ApplicationIcon>
   </PropertyGroup>
   <PropertyGroup>
     <ApplicationIcon>Icon.ico</ApplicationIcon>
   </PropertyGroup>
+  <PropertyGroup>
+    <StartupObject>
+    </StartupObject>
+  </PropertyGroup>
   <ItemGroup>
     <Compile Include="ActorFactory.cs" />
     <Compile Include="ActorManager.cs" />
   <ItemGroup>
     <Compile Include="ActorFactory.cs" />
     <Compile Include="ActorManager.cs" />
     <Compile Include="Widget.cs" />
   </ItemGroup>
   <ItemGroup>
     <Compile Include="Widget.cs" />
   </ItemGroup>
   <ItemGroup>
+    <Reference Include="MonoGame.Framework, Version=3.0.1.0, Culture=neutral, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>..\..\..\..\..\Program Files (x86)\MonoGame\v3.0\Assemblies\WindowsGL\MonoGame.Framework.dll</HintPath>
+    </Reference>
     <Reference Include="OpenTK">
       <HintPath>..\..\..\..\..\..\..\Program Files (x86)\MSBuild\..\MonoGame\v3.0\Assemblies\WindowsGL\OpenTK.dll</HintPath>
     </Reference>
     <Reference Include="OpenTK">
       <HintPath>..\..\..\..\..\..\..\Program Files (x86)\MSBuild\..\MonoGame\v3.0\Assemblies\WindowsGL\OpenTK.dll</HintPath>
     </Reference>
-    <Reference Include="MonoGame.Framework">
-      <HintPath>..\..\..\..\..\..\..\Program Files (x86)\MSBuild\..\MonoGame\v3.0\Assemblies\WindowsGL\MonoGame.Framework.dll</HintPath>
-    </Reference>
     <Reference Include="Lidgren.Network">
       <HintPath>..\..\..\..\..\..\..\Program Files (x86)\MSBuild\..\MonoGame\v3.0\Assemblies\WindowsGL\Lidgren.Network.dll</HintPath>
     </Reference>
     <Reference Include="Lidgren.Network">
       <HintPath>..\..\..\..\..\..\..\Program Files (x86)\MSBuild\..\MonoGame\v3.0\Assemblies\WindowsGL\Lidgren.Network.dll</HintPath>
     </Reference>
-    <Reference Include="Tao.Sdl">
-      <HintPath>..\..\..\..\..\..\..\Program Files (x86)\MSBuild\..\MonoGame\v3.0\Assemblies\WindowsGL\Tao.Sdl.dll</HintPath>
-    </Reference>
     <Reference Include="System" />
     <Reference Include="System.Xml" />
     <Reference Include="System" />
     <Reference Include="System.Xml" />
+    <Reference Include="Tao.Sdl, Version=1.2.13.0, Culture=neutral, PublicKeyToken=9c7a200e36c0094e, processorArchitecture=MSIL" />
   </ItemGroup>
   <ItemGroup>
     <Content Include="..\..\..\..\..\..\..\Program Files (x86)\MonoGame\v3.0\Assemblies\WindowsGL\SDL.dll">
       <Link>SDL.dll</Link>
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </Content>
   </ItemGroup>
   <ItemGroup>
     <Content Include="..\..\..\..\..\..\..\Program Files (x86)\MonoGame\v3.0\Assemblies\WindowsGL\SDL.dll">
       <Link>SDL.dll</Link>
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </Content>
-    <Content Include="Content\Sound\bomb.wav">
-      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
-    </Content>
-    <Content Include="Content\Sound\bullet.wav">
-      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
-    </Content>
-    <Content Include="Content\Sound\gameover.wav">
-      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
-    </Content>
-    <Content Include="Content\Sound\hit.wav">
-      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
-    </Content>
-    <Content Include="Content\Sound\life.wav">
-      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
-    </Content>
-    <Content Include="Content\Sound\polaritychange.wav">
+    <Content Include="Content\Sound\polaritytheme.wav">
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </Content>
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </Content>
-    <Content Include="Content\Sound\polaritytheme.wav">
+    <Content Include="Content\Sound\polaritytheme.wma">
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </Content>
     <Content Include="Icon.ico" />
   </ItemGroup>
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </Content>
     <Content Include="Icon.ico" />
   </ItemGroup>
-  <ItemGroup />
+  <ItemGroup>
+    <BootstrapperPackage Include=".NETFramework,Version=v4.0">
+      <Visible>False</Visible>
+      <ProductName>Microsoft .NET Framework 4 %28x86 and x64%29</ProductName>
+      <Install>true</Install>
+    </BootstrapperPackage>
+    <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
+      <Visible>False</Visible>
+      <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
+      <Install>false</Install>
+    </BootstrapperPackage>
+    <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
+      <Visible>False</Visible>
+      <ProductName>.NET Framework 3.5 SP1</ProductName>
+      <Install>false</Install>
+    </BootstrapperPackage>
+    <BootstrapperPackage Include="Microsoft.Windows.Installer.4.5">
+      <Visible>False</Visible>
+      <ProductName>Windows Installer 4.5</ProductName>
+      <Install>true</Install>
+    </BootstrapperPackage>
+  </ItemGroup>
   <ItemGroup>
     <None Include="Content\Fonts\bigfont.xnb">
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
   <ItemGroup>
     <None Include="Content\Fonts\bigfont.xnb">
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     <None Include="Content\Graphics\polaritydemotitle.xnb">
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </None>
     <None Include="Content\Graphics\polaritydemotitle.xnb">
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </None>
+    <None Include="Content\Sound\bomb.xnb">
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </None>
+    <None Include="Content\Sound\bullet.xnb">
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </None>
+    <None Include="Content\Sound\gameover.xnb">
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </None>
+    <None Include="Content\Sound\hit.xnb">
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </None>
+    <None Include="Content\Sound\life.xnb">
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </None>
+    <None Include="Content\Sound\polaritychange.xnb">
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </None>
+    <None Include="Content\Sound\polaritytheme.xnb">
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </None>
     <None Include="neutral-supercruiser.xnb">
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </None>
     <None Include="neutral-supercruiser.xnb">
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </None>
index 12417a22fe8f56a0a8913033223b6bf93c3582b7..3e3d270ea7ada9f0e490aec64278d1d72e91b800 100644 (file)
       <Processor>FontTextureProcessor</Processor>
     </Compile>
   </ItemGroup>
       <Processor>FontTextureProcessor</Processor>
     </Compile>
   </ItemGroup>
+  <ItemGroup>
+    <Compile Include="Sound\bomb.wav">
+      <Name>bomb</Name>
+      <Importer>WavImporter</Importer>
+      <Processor>SoundEffectProcessor</Processor>
+    </Compile>
+    <Compile Include="Sound\bullet.wav">
+      <Name>bullet</Name>
+      <Importer>WavImporter</Importer>
+      <Processor>SoundEffectProcessor</Processor>
+    </Compile>
+    <Compile Include="Sound\gameover.wav">
+      <Name>gameover</Name>
+      <Importer>WavImporter</Importer>
+      <Processor>SoundEffectProcessor</Processor>
+    </Compile>
+    <Compile Include="Sound\hit.wav">
+      <Name>hit</Name>
+      <Importer>WavImporter</Importer>
+      <Processor>SoundEffectProcessor</Processor>
+    </Compile>
+    <Compile Include="Sound\life.wav">
+      <Name>life</Name>
+      <Importer>WavImporter</Importer>
+      <Processor>SoundEffectProcessor</Processor>
+    </Compile>
+    <Compile Include="Sound\polaritychange.wav">
+      <Name>polaritychange</Name>
+      <Importer>WavImporter</Importer>
+      <Processor>SoundEffectProcessor</Processor>
+    </Compile>
+  </ItemGroup>
   <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" />
   <!--
       To modify your build process, add your task inside one of the targets below and uncomment it. 
   <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" />
   <!--
       To modify your build process, add your task inside one of the targets below and uncomment it. 
diff --git a/SuperPolarityMac/Content/logo.png b/SuperPolarityMac/Content/logo.png
new file mode 100644 (file)
index 0000000..701c1b5
Binary files /dev/null and b/SuperPolarityMac/Content/logo.png differ
diff --git a/SuperPolarityMac/Game1.cs b/SuperPolarityMac/Game1.cs
new file mode 100644 (file)
index 0000000..c0756a1
--- /dev/null
@@ -0,0 +1,110 @@
+#region File Description
+//-----------------------------------------------------------------------------
+// SuperPolarityMacGame.cs
+//
+// Microsoft XNA Community Game Platform
+// Copyright (C) Microsoft Corporation. All rights reserved.
+//-----------------------------------------------------------------------------
+#endregion
+
+#region Using Statements
+using System;
+
+using Microsoft.Xna.Framework;
+using Microsoft.Xna.Framework.Audio;
+using Microsoft.Xna.Framework.Graphics;
+using Microsoft.Xna.Framework.Input;
+using Microsoft.Xna.Framework.Input.Touch;
+using Microsoft.Xna.Framework.Storage;
+using Microsoft.Xna.Framework.Content;
+using Microsoft.Xna.Framework.Media;
+
+#endregion
+
+namespace SuperPolarityMac
+{
+       /// <summary>
+       /// Default Project Template
+       /// </summary>
+       public class Game1 : Game
+       {
+
+       #region Fields
+               GraphicsDeviceManager graphics;
+               SpriteBatch spriteBatch;
+               Texture2D logoTexture;
+       #endregion
+
+       #region Initialization
+
+        public Game1()  
+        {
+
+                       graphics = new GraphicsDeviceManager(this);
+                       
+                       Content.RootDirectory = "Content";
+
+                       graphics.IsFullScreen = false;
+               }
+
+               /// <summary>
+               /// Overridden from the base Game.Initialize. Once the GraphicsDevice is setup,
+               /// we'll use the viewport to initialize some values.
+               /// </summary>
+               protected override void Initialize()
+               {
+                       base.Initialize();
+               }
+
+
+               /// <summary>
+               /// Load your graphics content.
+               /// </summary>
+               protected override void LoadContent()
+               {
+                       // Create a new SpriteBatch, which can be use to draw textures.
+                       spriteBatch = new SpriteBatch(graphics.GraphicsDevice);
+                       
+                       // TODO: use this.Content to load your game content here eg.
+                       logoTexture = Content.Load<Texture2D>("logo");
+               }
+
+       #endregion
+
+       #region Update and Draw
+
+               /// <summary>
+               /// Allows the game to run logic such as updating the world,
+               /// checking for collisions, gathering input, and playing audio.
+               /// </summary>
+               /// <param name="gameTime">Provides a snapshot of timing values.</param>
+               protected override void Update(GameTime gameTime)
+               {
+                       // TODO: Add your update logic here                     
+                       
+                       base.Update(gameTime);
+               }
+
+               /// <summary>
+               /// This is called when the game should draw itself. 
+               /// </summary>
+               /// <param name="gameTime">Provides a snapshot of timing values.</param>
+               protected override void Draw(GameTime gameTime)
+               {
+                       // Clear the backbuffer
+                       graphics.GraphicsDevice.Clear(Color.CornflowerBlue);
+
+                       spriteBatch.Begin();
+
+                       // draw the logo
+                       spriteBatch.Draw(logoTexture, new Vector2 (130, 200), Color.White);
+
+                       spriteBatch.End();
+
+                       //TODO: Add your drawing code here
+                       base.Draw(gameTime);
+               }
+
+       #endregion
+       }
+}
diff --git a/SuperPolarityMac/Info.plist b/SuperPolarityMac/Info.plist
new file mode 100644 (file)
index 0000000..07a58c3
--- /dev/null
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+       <key>CFBundleIdentifier</key>
+       <string>com.yourcompany.MonoGame.Samples.Draw2D.MacOS</string>
+       <key>CFBundleName</key>
+       <string>MonoGame.Samples.Draw2D.MacOS</string>
+       <key>CFBundleVersion</key>
+       <string>1</string>
+       <key>LSMinimumSystemVersion</key>
+       <string>10.6</string>
+       <key>NSPrincipalClass</key>
+       <string>NSApplication</string>
+</dict>
+</plist>
+
diff --git a/SuperPolarityMac/Main.cs b/SuperPolarityMac/Main.cs
new file mode 100644 (file)
index 0000000..f21bf0b
--- /dev/null
@@ -0,0 +1,44 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using MonoMac.AppKit;
+using MonoMac.Foundation;
+
+namespace SuperPolarityMac
+{
+       static class Program
+       {
+               /// <summary>
+               /// The main entry point for the application.
+               /// </summary>
+               static void Main (string[] args)
+               {
+                       NSApplication.Init ();
+                       
+                       using (var p = new NSAutoreleasePool ()) {
+                               NSApplication.SharedApplication.Delegate = new AppDelegate ();
+                               NSApplication.Main (args);
+                       }
+
+
+               }
+       }
+
+       class AppDelegate : NSApplicationDelegate
+       {
+               Game1 game;
+
+               public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
+               {
+                       game = new Game1 ();
+                       game.Run ();
+               }
+
+               public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplication sender)
+               {
+                       return true;
+               }
+       }
+}
+
+
index 6c3f6141a1eec6053e0f6656d4fb98bfb6513489..e6ab5cfcff83cbcb2c0c837749b0a4bbd918c271 100644 (file)
@@ -1,26 +1,44 @@
-#region Using Statements
 using System;
 using System.Collections.Generic;
 using System.Linq;
 using System;
 using System.Collections.Generic;
 using System.Linq;
-#endregion
+using MonoMac.AppKit;
+using MonoMac.Foundation;
 
 namespace SuperPolarity
 {
 
 namespace SuperPolarity
 {
-#if WINDOWS || LINUX
-    /// <summary>
-    /// The main class.
-    /// </summary>
-    public static class Program
-    {
-        /// <summary>
-        /// The main entry point for the application.
-        /// </summary>
-        [STAThread]
-        static void Main()
-        {
-            using (var superPolarity = new SuperPolarity())
-                superPolarity.Run();
-        }
-    }
-#endif
+       static class Program
+       {
+               /// <summary>
+               /// The main entry point for the application.
+               /// </summary>
+               static void Main (string[] args)
+               {
+                       NSApplication.Init ();
+
+                       using (var p = new NSAutoreleasePool ()) {
+                               NSApplication.SharedApplication.Delegate = new AppDelegate ();
+                               NSApplication.Main (args);
+                       }
+
+
+               }
+       }
+
+       class AppDelegate : NSApplicationDelegate
+       {
+               SuperPolarity superPolarity;
+
+               public override void FinishedLaunching (MonoMac.Foundation.NSObject notification)
+               {
+                       superPolarity = new SuperPolarity();
+                       superPolarity.Run ();
+               }
+
+               public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplication sender)
+               {
+                       return true;
+               }
+       }
 }
 }
+
+
diff --git a/SuperPolarityMac/Project.cs b/SuperPolarityMac/Project.cs
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/SuperPolarityMac/Properties/AssemblyInfo.cs b/SuperPolarityMac/Properties/AssemblyInfo.cs
new file mode 100644 (file)
index 0000000..d61ed27
--- /dev/null
@@ -0,0 +1,27 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+
+// Information about this assembly is defined by the following attributes. 
+// Change them to the values specific to your project.
+
+[assembly: AssemblyTitle("SuperPolarityMac")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("")]
+[assembly: AssemblyCopyright("benbeltran")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
+// The form "{Major}.{Minor}.*" will automatically update the build and revision,
+// and "{Major}.{Minor}.{Build}.*" will update just the revision.
+
+[assembly: AssemblyVersion("1.0.0")]
+
+// The following attributes are used to specify the signing key for the assembly, 
+// if desired. See the Mono documentation for more information about signing.
+
+//[assembly: AssemblyDelaySign(false)]
+//[assembly: AssemblyKeyFile("")]
+
index 4eac2c00c9136904a51120042f4c7a9074f61d83..ded94e3493d92d9c44a616c8c931303ef717dbc6 100644 (file)
@@ -5,7 +5,7 @@
     <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
     <ProductVersion>10.0.0</ProductVersion>
     <SchemaVersion>2.0</SchemaVersion>
     <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
     <ProductVersion>10.0.0</ProductVersion>
     <SchemaVersion>2.0</SchemaVersion>
-    <ProjectGuid>{008F4BF1-A2AB-4EC4-977D-451AE4B1B0FE}</ProjectGuid>
+    <ProjectGuid>{EE77A85A-089B-4055-90D0-6E08DF409410}</ProjectGuid>
     <ProjectTypeGuids>{948B3504-5B70-4649-8FE4-BDE1FB46EC69};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
     <OutputType>Exe</OutputType>
     <RootNamespace>SuperPolarityMac</RootNamespace>
     <ProjectTypeGuids>{948B3504-5B70-4649-8FE4-BDE1FB46EC69};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
     <OutputType>Exe</OutputType>
     <RootNamespace>SuperPolarityMac</RootNamespace>
@@ -18,7 +18,6 @@
     <Optimize>false</Optimize>
     <OutputPath>bin\Debug</OutputPath>
     <DefineConstants>DEBUG;</DefineConstants>
     <Optimize>false</Optimize>
     <OutputPath>bin\Debug</OutputPath>
     <DefineConstants>DEBUG;</DefineConstants>
-    <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
     <ConsolePause>false</ConsolePause>
     <UseSGen>false</UseSGen>
     <WarningLevel>4</WarningLevel>
     <ConsolePause>false</ConsolePause>
     <UseSGen>false</UseSGen>
@@ -32,7 +31,6 @@
     <DebugType>full</DebugType>
     <Optimize>true</Optimize>
     <OutputPath>bin\Release</OutputPath>
     <DebugType>full</DebugType>
     <Optimize>true</Optimize>
     <OutputPath>bin\Release</OutputPath>
-    <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
     <ConsolePause>false</ConsolePause>
     <LinkMode>Full</LinkMode>
     <WarningLevel>4</WarningLevel>
     <ConsolePause>false</ConsolePause>
     <LinkMode>Full</LinkMode>
@@ -47,7 +45,6 @@
     <DebugType>full</DebugType>
     <Optimize>true</Optimize>
     <OutputPath>bin\AppStore</OutputPath>
     <DebugType>full</DebugType>
     <Optimize>true</Optimize>
     <OutputPath>bin\AppStore</OutputPath>
-    <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
     <ConsolePause>false</ConsolePause>
     <LinkMode>Full</LinkMode>
     <WarningLevel>4</WarningLevel>
     <ConsolePause>false</ConsolePause>
     <LinkMode>Full</LinkMode>
     <Reference Include="System.Core" />
     <Reference Include="System.Xml.Linq" />
     <Reference Include="System.Drawing" />
     <Reference Include="System.Core" />
     <Reference Include="System.Xml.Linq" />
     <Reference Include="System.Drawing" />
-    <Reference Include="MonoMac" />
-    <Reference Include="MonoGame.Framework" />
+    <Reference Include="MonoMac">
+      <HintPath>..\..\MonoGame-develop\MonoGame.Framework\bin\MacOS\Debug\MonoMac.dll</HintPath>
+    </Reference>
+    <Reference Include="Lidgren.Network">
+      <HintPath>..\..\MonoGame-develop\MonoGame.Framework\bin\MacOS\Debug\Lidgren.Network.dll</HintPath>
+    </Reference>
+    <Reference Include="MonoGame.Framework">
+      <HintPath>..\..\MonoGame-develop\MonoGame.Framework\bin\MacOS\Debug\MonoGame.Framework.dll</HintPath>
+    </Reference>
+    <Reference Include="Tao.Sdl">
+      <HintPath>..\..\MonoGame-develop\MonoGame.Framework\bin\MacOS\Debug\Tao.Sdl.dll</HintPath>
+    </Reference>
   </ItemGroup>
   </ItemGroup>
+  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+  <Import Project="$(MSBuildExtensionsPath)\Mono\MonoMac\v0.0\Mono.MonoMac.targets" />
   <ItemGroup>
   <ItemGroup>
-    <Compile Include="Game1.cs" />
-    <Compile Include="Main.cs" />
-    <Compile Include="Properties\AssemblyInfo.cs" />
+    <Compile Include="..\SuperPolarity\ActorFactory.cs">
+      <Link>ActorFactory.cs</Link>
+    </Compile>
+    <Compile Include="..\SuperPolarity\ActorManager.cs">
+      <Link>ActorManager.cs</Link>
+    </Compile>
+    <Compile Include="..\SuperPolarity\BasicGenerator.cs">
+      <Link>BasicGenerator.cs</Link>
+    </Compile>
+    <Compile Include="..\SuperPolarity\GameScreen.cs">
+      <Link>GameScreen.cs</Link>
+    </Compile>
+    <Compile Include="..\SuperPolarity\InputController.cs">
+      <Link>InputController.cs</Link>
+    </Compile>
+    <Compile Include="..\SuperPolarity\LetterChooseWidget.cs">
+      <Link>LetterChooseWidget.cs</Link>
+    </Compile>
+    <Compile Include="..\SuperPolarity\MenuItem.cs">
+      <Link>MenuItem.cs</Link>
+    </Compile>
+    <Compile Include="..\SuperPolarity\MenuWidget.cs">
+      <Link>MenuWidget.cs</Link>
+    </Compile>
+    <Compile Include="..\SuperPolarity\NameChooserWidget.cs">
+      <Link>NameChooserWidget.cs</Link>
+    </Compile>
+    <Compile Include="..\SuperPolarity\Particle.cs">
+      <Link>Particle.cs</Link>
+    </Compile>
+    <Compile Include="..\SuperPolarity\ParticleEffectFactory.cs">
+      <Link>ParticleEffectFactory.cs</Link>
+    </Compile>
+    <Compile Include="..\SuperPolarity\ParticleEngine.cs">
+      <Link>ParticleEngine.cs</Link>
+    </Compile>
+    <Compile Include="..\SuperPolarity\Player.cs">
+      <Link>Player.cs</Link>
+    </Compile>
+    <Compile Include="..\SuperPolarity\Renderer.cs">
+      <Link>Renderer.cs</Link>
+    </Compile>
+    <Compile Include="..\SuperPolarity\ScoreScreen.cs">
+      <Link>ScoreScreen.cs</Link>
+    </Compile>
+    <Compile Include="..\SuperPolarity\Screen.cs">
+      <Link>Screen.cs</Link>
+    </Compile>
+    <Compile Include="..\SuperPolarity\ScreenManager.cs">
+      <Link>ScreenManager.cs</Link>
+    </Compile>
+    <Compile Include="..\SuperPolarity\SuperPolarity.cs">
+      <Link>SuperPolarity.cs</Link>
+    </Compile>
+    <Compile Include="..\SuperPolarity\TitleScreen.cs">
+      <Link>TitleScreen.cs</Link>
+    </Compile>
+    <Compile Include="..\SuperPolarity\Widget.cs">
+      <Link>Widget.cs</Link>
+    </Compile>
+    <Compile Include="..\SuperPolarity\Actors\Actor.cs">
+      <Link>Actors\Actor.cs</Link>
+    </Compile>
+    <Compile Include="..\SuperPolarity\Actors\Bullet.cs">
+      <Link>Actors\Bullet.cs</Link>
+    </Compile>
+    <Compile Include="..\SuperPolarity\Actors\MainShip.cs">
+      <Link>Actors\MainShip.cs</Link>
+    </Compile>
+    <Compile Include="..\SuperPolarity\Actors\Ship.cs">
+      <Link>Actors\Ship.cs</Link>
+    </Compile>
+    <Compile Include="..\SuperPolarity\Actors\StandardShip.cs">
+      <Link>Actors\StandardShip.cs</Link>
+    </Compile>
+    <Compile Include="..\SuperPolarity\Properties\AssemblyInfo.cs">
+      <Link>Properties\AssemblyInfo.cs</Link>
+    </Compile>
+    <Compile Include="Program.cs" />
   </ItemGroup>
   <ItemGroup>
   </ItemGroup>
   <ItemGroup>
-    <None Include="Info.plist" />
-    <None Include="Content\logo.png" />
+    <None Include="..\SuperPolarity\Icon.ico">
+      <Link>Icon.ico</Link>
+    </None>
+    <None Include="..\SuperPolarity\neutral-supercruiser.xnb">
+      <Link>neutral-supercruiser.xnb</Link>
+    </None>
+    <None Include="..\SuperPolarity\scores.txt">
+      <Link>scores.txt</Link>
+    </None>
+  </ItemGroup>
+  <ItemGroup>
+    <Folder Include="Actors\" />
+    <Folder Include="Content\" />
+    <Folder Include="Properties\" />
+  </ItemGroup>
+  <ItemGroup>
+    <BundleResource Include="..\SuperPolarity\Content\Graphics\circle.xnb">
+      <Link>Content\Graphics\circle.xnb</Link>
+    </BundleResource>
+    <BundleResource Include="..\SuperPolarity\Content\Graphics\diamond.xnb">
+      <Link>Content\Graphics\diamond.xnb</Link>
+    </BundleResource>
+    <BundleResource Include="..\SuperPolarity\Content\Graphics\main-ship.xnb">
+      <Link>Content\Graphics\main-ship.xnb</Link>
+    </BundleResource>
+    <BundleResource Include="..\SuperPolarity\Content\Graphics\negative-cruiser.xnb">
+      <Link>Content\Graphics\negative-cruiser.xnb</Link>
+    </BundleResource>
+    <BundleResource Include="..\SuperPolarity\Content\Graphics\negative-destroyer.xnb">
+      <Link>Content\Graphics\negative-destroyer.xnb</Link>
+    </BundleResource>
+    <BundleResource Include="..\SuperPolarity\Content\Graphics\negative-scout.xnb">
+      <Link>Content\Graphics\negative-scout.xnb</Link>
+    </BundleResource>
+    <BundleResource Include="..\SuperPolarity\Content\Graphics\negative-ship.xnb">
+      <Link>Content\Graphics\negative-ship.xnb</Link>
+    </BundleResource>
+    <BundleResource Include="..\SuperPolarity\Content\Graphics\negative-supercruiser.xnb">
+      <Link>Content\Graphics\negative-supercruiser.xnb</Link>
+    </BundleResource>
+    <BundleResource Include="..\SuperPolarity\Content\Graphics\neutral-cruiser.xnb">
+      <Link>Content\Graphics\neutral-cruiser.xnb</Link>
+    </BundleResource>
+    <BundleResource Include="..\SuperPolarity\Content\Graphics\neutral-destroyer.xnb">
+      <Link>Content\Graphics\neutral-destroyer.xnb</Link>
+    </BundleResource>
+    <BundleResource Include="..\SuperPolarity\Content\Graphics\neutral-scout.xnb">
+      <Link>Content\Graphics\neutral-scout.xnb</Link>
+    </BundleResource>
+    <BundleResource Include="..\SuperPolarity\Content\Graphics\neutral-ship.xnb">
+      <Link>Content\Graphics\neutral-ship.xnb</Link>
+    </BundleResource>
+    <BundleResource Include="..\SuperPolarity\Content\Graphics\neutral-supercruiser.xnb">
+      <Link>Content\Graphics\neutral-supercruiser.xnb</Link>
+    </BundleResource>
+    <BundleResource Include="..\SuperPolarity\Content\Graphics\pause-screen.xnb">
+      <Link>Content\Graphics\pause-screen.xnb</Link>
+    </BundleResource>
+    <BundleResource Include="..\SuperPolarity\Content\Graphics\polaritydemotitle.xnb">
+      <Link>Content\Graphics\polaritydemotitle.xnb</Link>
+    </BundleResource>
+    <BundleResource Include="..\SuperPolarity\Content\Graphics\positive-cruiser.xnb">
+      <Link>Content\Graphics\positive-cruiser.xnb</Link>
+    </BundleResource>
+    <BundleResource Include="..\SuperPolarity\Content\Graphics\positive-destroyer.xnb">
+      <Link>Content\Graphics\positive-destroyer.xnb</Link>
+    </BundleResource>
+    <BundleResource Include="..\SuperPolarity\Content\Graphics\positive-scout.xnb">
+      <Link>Content\Graphics\positive-scout.xnb</Link>
+    </BundleResource>
+    <BundleResource Include="..\SuperPolarity\Content\Graphics\positive-ship.xnb">
+      <Link>Content\Graphics\positive-ship.xnb</Link>
+    </BundleResource>
+    <BundleResource Include="..\SuperPolarity\Content\Graphics\positive-supercruiser.xnb">
+      <Link>Content\Graphics\positive-supercruiser.xnb</Link>
+    </BundleResource>
+    <BundleResource Include="..\SuperPolarity\Content\Graphics\square.xnb">
+      <Link>Content\Graphics\square.xnb</Link>
+    </BundleResource>
+    <BundleResource Include="..\SuperPolarity\Content\Graphics\star.xnb">
+      <Link>Content\Graphics\star.xnb</Link>
+    </BundleResource>
+    <BundleResource Include="..\SuperPolarity\Content\Fonts\SegoeUIMono14.xnb">
+      <Link>Content\Fonts\SegoeUIMono14.xnb</Link>
+    </BundleResource>
+    <BundleResource Include="..\SuperPolarity\Content\Fonts\bigfont.xnb">
+      <Link>Content\Fonts\bigfont.xnb</Link>
+    </BundleResource>
+    <BundleResource Include="..\SuperPolarity\Content\Fonts\smallfont.xnb">
+      <Link>Content\Fonts\smallfont.xnb</Link>
+    </BundleResource>
+    <BundleResource Include="Info.plist" />
+    <BundleResource Include="..\SuperPolarity\Content\Sound\bomb.m4a">
+      <Link>Content\Sound\bomb.m4a</Link>
+    </BundleResource>
+    <BundleResource Include="..\SuperPolarity\Content\Sound\bullet.m4a">
+      <Link>Content\Sound\bullet.m4a</Link>
+    </BundleResource>
+    <BundleResource Include="..\SuperPolarity\Content\Sound\gameover.m4a">
+      <Link>Content\Sound\gameover.m4a</Link>
+    </BundleResource>
+    <BundleResource Include="..\SuperPolarity\Content\Sound\hit.m4a">
+      <Link>Content\Sound\hit.m4a</Link>
+    </BundleResource>
+    <BundleResource Include="..\SuperPolarity\Content\Sound\life.m4a">
+      <Link>Content\Sound\life.m4a</Link>
+    </BundleResource>
+    <BundleResource Include="..\SuperPolarity\Content\Sound\polaritychange.m4a">
+      <Link>Content\Sound\polaritychange.m4a</Link>
+    </BundleResource>
+    <BundleResource Include="..\SuperPolarity\Content\Sound\polaritytheme.m4a">
+      <Link>Content\Sound\polaritytheme.m4a</Link>
+    </BundleResource>
   </ItemGroup>
   </ItemGroup>
-  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
-  <Import Project="$(MSBuildExtensionsPath)\Mono\MonoMac\v0.0\Mono.MonoMac.targets" />
 </Project>
\ No newline at end of file
 </Project>
\ No newline at end of file
diff --git a/SuperPolarityMac/SuperPolarityMac.sln b/SuperPolarityMac/SuperPolarityMac.sln
new file mode 100644 (file)
index 0000000..fd96166
--- /dev/null
@@ -0,0 +1,23 @@
+
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SuperPolarityMac", "SuperPolarityMac.csproj", "{EE77A85A-089B-4055-90D0-6E08DF409410}"
+EndProject
+Global
+       GlobalSection(SolutionConfigurationPlatforms) = preSolution
+               Debug|Any CPU = Debug|Any CPU
+               Release|Any CPU = Release|Any CPU
+               AppStore|Any CPU = AppStore|Any CPU
+       EndGlobalSection
+       GlobalSection(ProjectConfigurationPlatforms) = postSolution
+               {EE77A85A-089B-4055-90D0-6E08DF409410}.AppStore|Any CPU.ActiveCfg = AppStore|Any CPU
+               {EE77A85A-089B-4055-90D0-6E08DF409410}.AppStore|Any CPU.Build.0 = AppStore|Any CPU
+               {EE77A85A-089B-4055-90D0-6E08DF409410}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+               {EE77A85A-089B-4055-90D0-6E08DF409410}.Debug|Any CPU.Build.0 = Debug|Any CPU
+               {EE77A85A-089B-4055-90D0-6E08DF409410}.Release|Any CPU.ActiveCfg = Release|Any CPU
+               {EE77A85A-089B-4055-90D0-6E08DF409410}.Release|Any CPU.Build.0 = Release|Any CPU
+       EndGlobalSection
+       GlobalSection(MonoDevelopProperties) = preSolution
+               StartupItem = SuperPolarityMac.csproj
+       EndGlobalSection
+EndGlobal
diff --git a/SuperPolarityMac/SuperPolarityMac.userprefs b/SuperPolarityMac/SuperPolarityMac.userprefs
new file mode 100644 (file)
index 0000000..4e3269b
--- /dev/null
@@ -0,0 +1,13 @@
+<Properties MonoDevelop.MonoMac.LastXamMacNagTime="2/8/2014 5:55:19 PM">
+  <MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
+  <MonoDevelop.Ide.Workbench ActiveDocument="../SuperPolarity/SuperPolarity.cs">
+    <Files>
+      <File FileName="../SuperPolarity/SuperPolarity.cs" Line="75" Column="3" />
+      <File FileName="../SuperPolarity/GameScreen.cs" Line="1" Column="1" />
+    </Files>
+  </MonoDevelop.Ide.Workbench>
+  <MonoDevelop.Ide.DebuggingService.Breakpoints>
+    <BreakpointStore />
+  </MonoDevelop.Ide.DebuggingService.Breakpoints>
+  <MonoDevelop.Ide.DebuggingService.PinnedWatches />
+</Properties>
\ No newline at end of file