From 6fceaa7b34f4d6efc497cda51679b37e530a61aa Mon Sep 17 00:00:00 2001 From: Ben Beltran Date: Mon, 10 Feb 2014 22:34:27 -0800 Subject: Adds linux project. --- SuperPolarityLinux/Game1.cs | 82 ++++++++ SuperPolarityLinux/Icon.png | Bin 0 -> 6479 bytes SuperPolarityLinux/Program.cs | 24 +++ SuperPolarityLinux/Properties/AssemblyInfo.cs | 27 +++ SuperPolarityLinux/SuperPolarityLinux.csproj | 281 ++++++++++++++++++++++++++ 5 files changed, 414 insertions(+) create mode 100644 SuperPolarityLinux/Game1.cs create mode 100644 SuperPolarityLinux/Icon.png create mode 100644 SuperPolarityLinux/Program.cs create mode 100644 SuperPolarityLinux/Properties/AssemblyInfo.cs create mode 100644 SuperPolarityLinux/SuperPolarityLinux.csproj (limited to 'SuperPolarityLinux') diff --git a/SuperPolarityLinux/Game1.cs b/SuperPolarityLinux/Game1.cs new file mode 100644 index 0000000..0382cc5 --- /dev/null +++ b/SuperPolarityLinux/Game1.cs @@ -0,0 +1,82 @@ +#region Using Statements +using System; + +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Microsoft.Xna.Framework.Storage; +using Microsoft.Xna.Framework.Input; + +#endregion + +namespace SuperPolarityLinux +{ + /// + /// This is the main type for your game + /// + public class Game1 : Game + { + GraphicsDeviceManager graphics; + SpriteBatch spriteBatch; + + public Game1 () + { + graphics = new GraphicsDeviceManager (this); + Content.RootDirectory = "Content"; + graphics.IsFullScreen = true; + } + + /// + /// Allows the game to perform any initialization it needs to before starting to run. + /// This is where it can query for any required services and load any non-graphic + /// related content. Calling base.Initialize will enumerate through any components + /// and initialize them as well. + /// + protected override void Initialize () + { + // TODO: Add your initialization logic here + base.Initialize (); + + } + + /// + /// LoadContent will be called once per game and is the place to load + /// all of your content. + /// + protected override void LoadContent () + { + // Create a new SpriteBatch, which can be used to draw textures. + spriteBatch = new SpriteBatch (GraphicsDevice); + + //TODO: use this.Content to load your game content here + } + + /// + /// Allows the game to run logic such as updating the world, + /// checking for collisions, gathering input, and playing audio. + /// + /// Provides a snapshot of timing values. + protected override void Update (GameTime gameTime) + { + // For Mobile devices, this logic will close the Game when the Back button is pressed + if (GamePad.GetState (PlayerIndex.One).Buttons.Back == ButtonState.Pressed) { + Exit (); + } + // TODO: Add your update logic here + base.Update (gameTime); + } + + /// + /// This is called when the game should draw itself. + /// + /// Provides a snapshot of timing values. + protected override void Draw (GameTime gameTime) + { + graphics.GraphicsDevice.Clear (Color.CornflowerBlue); + + //TODO: Add your drawing code here + + base.Draw (gameTime); + } + } +} + diff --git a/SuperPolarityLinux/Icon.png b/SuperPolarityLinux/Icon.png new file mode 100644 index 0000000..c57cf36 Binary files /dev/null and b/SuperPolarityLinux/Icon.png differ diff --git a/SuperPolarityLinux/Program.cs b/SuperPolarityLinux/Program.cs new file mode 100644 index 0000000..0aa991d --- /dev/null +++ b/SuperPolarityLinux/Program.cs @@ -0,0 +1,24 @@ +#region Using Statements +using System; +using System.Collections.Generic; +using System.Linq; + +#endregion + +namespace SuperPolarity +{ + static class Program + { + private static SuperPolarity superPolarity; + + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main () + { + superPolarity = new SuperPolarity (); + superPolarity.Run (); + } + } +} diff --git a/SuperPolarityLinux/Properties/AssemblyInfo.cs b/SuperPolarityLinux/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..4833269 --- /dev/null +++ b/SuperPolarityLinux/Properties/AssemblyInfo.cs @@ -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("SuperPolarityLinux")] +[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("")] + diff --git a/SuperPolarityLinux/SuperPolarityLinux.csproj b/SuperPolarityLinux/SuperPolarityLinux.csproj new file mode 100644 index 0000000..1cffb22 --- /dev/null +++ b/SuperPolarityLinux/SuperPolarityLinux.csproj @@ -0,0 +1,281 @@ + + + + Debug + AnyCPU + 10.0.0 + 2.0 + {B37AAC05-2F93-4061-AEF3-DABB11980C62} + {9B831FEF-F496-498F-9FE8-180DA5CB4258};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Exe + SuperPolarity + Linux + SuperPolarityLinux + + + true + full + false + bin\Debug + DEBUG; + prompt + 4 + false + + + none + true + bin\Release + prompt + 4 + false + + + + + + + False + + + False + + + + + + + ActorFactory.cs + + + ActorManager.cs + + + BasicGenerator.cs + + + GameScreen.cs + + + InputController.cs + + + LetterChooseWidget.cs + + + MenuItem.cs + + + MenuWidget.cs + + + NameChooserWidget.cs + + + Particle.cs + + + ParticleEffectFactory.cs + + + ParticleEngine.cs + + + Player.cs + + + Renderer.cs + + + ScoreScreen.cs + + + Screen.cs + + + ScreenManager.cs + + + SuperPolarity.cs + + + TitleScreen.cs + + + Widget.cs + + + Actors\Actor.cs + + + Actors\Bullet.cs + + + Actors\MainShip.cs + + + Actors\Ship.cs + + + Actors\StandardShip.cs + + + + + + Icon.ico + + + neutral-supercruiser.xnb + + + scores.txt + + + + + + + + + + + + + Content\Fonts\SegoeUIMono14.xnb + PreserveNewest + + + Content\Fonts\bigfont.xnb + PreserveNewest + + + Content\Fonts\smallfont.xnb + PreserveNewest + + + Content\Graphics\circle.xnb + PreserveNewest + + + Content\Graphics\diamond.xnb + PreserveNewest + + + Content\Graphics\main-ship.xnb + PreserveNewest + + + Content\Graphics\negative-cruiser.xnb + PreserveNewest + + + Content\Graphics\negative-destroyer.xnb + PreserveNewest + + + Content\Graphics\negative-scout.xnb + PreserveNewest + + + Content\Graphics\negative-ship.xnb + PreserveNewest + + + Content\Graphics\negative-supercruiser.xnb + PreserveNewest + + + Content\Graphics\neutral-cruiser.xnb + PreserveNewest + + + Content\Graphics\neutral-destroyer.xnb + PreserveNewest + + + Content\Graphics\neutral-scout.xnb + PreserveNewest + + + Content\Graphics\neutral-ship.xnb + PreserveNewest + + + Content\Graphics\neutral-supercruiser.xnb + PreserveNewest + + + Content\Graphics\pause-screen.xnb + PreserveNewest + + + Content\Graphics\polaritydemotitle.xnb + PreserveNewest + + + Content\Graphics\positive-cruiser.xnb + PreserveNewest + + + Content\Graphics\positive-destroyer.xnb + PreserveNewest + + + Content\Graphics\positive-scout.xnb + PreserveNewest + + + Content\Graphics\positive-ship.xnb + PreserveNewest + + + Content\Graphics\positive-supercruiser.xnb + PreserveNewest + + + Content\Graphics\square.xnb + PreserveNewest + + + Content\Graphics\star.xnb + PreserveNewest + + + Content\Sound\bomb.xnb + PreserveNewest + + + Content\Sound\bullet.xnb + PreserveNewest + + + Content\Sound\gameover.xnb + PreserveNewest + + + Content\Sound\hit.xnb + PreserveNewest + + + Content\Sound\life.xnb + PreserveNewest + + + Content\Sound\polaritychange.xnb + PreserveNewest + + + Content\Sound\polaritytheme.wav + PreserveNewest + + + Content\Sound\polaritytheme.wma + PreserveNewest + + + Content\Sound\polaritytheme.xnb + PreserveNewest + + + \ No newline at end of file -- cgit