diff --git a/CameraTest/CameraTest.cs b/CameraTest/CameraTest.cs deleted file mode 100644 index defb9ae..0000000 --- a/CameraTest/CameraTest.cs +++ /dev/null @@ -1,122 +0,0 @@ -using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; -using Microsoft.Xna.Framework.Input; -using RecrownedAthenaeum.Camera; -using RecrownedAthenaeum.Render; -using System; - -namespace CameraTest -{ - /// - /// This is the main type for your game. - /// - public class CameraTest : Game - { - GraphicsDeviceManager graphics; - SpriteBatch spriteBatch; - PrimitiveBatch pb; - Camera2D camera; - RectangleRenderer rr; - BasicEffect be; - public CameraTest() - { - graphics = new GraphicsDeviceManager(this); - Content.RootDirectory = "Content"; - } - - /// - /// 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. - camera = new Camera2D(graphics.GraphicsDevice); - spriteBatch = new SpriteBatch(GraphicsDevice); - rr = new RectangleRenderer(camera, GraphicsDevice); - pb = new PrimitiveBatch(camera, GraphicsDevice); - be = new BasicEffect(GraphicsDevice); - be.World = camera.worldMatrix; - be.View = camera.ViewMatrix; - be.Projection = camera.projectionMatrix; - // TODO: use this.Content to load your game content here - } - - /// - /// UnloadContent will be called once per game and is the place to unload - /// game-specific content. - /// - protected override void UnloadContent() - { - // TODO: Unload any non ContentManager content here - rr.Dispose(); - } - - /// - /// 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) - { - if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape)) - Exit(); - - - if (Keyboard.GetState().IsKeyDown(Keys.Left)) - { - Console.WriteLine("moving.."); - camera.MoveCamera(new Vector2(-5, 0)); - } - if (Keyboard.GetState().IsKeyDown(Keys.Right)) - { - Console.WriteLine("moving.."); - camera.MoveCamera(new Vector2(5, 0)); - } - if (Keyboard.GetState().IsKeyDown(Keys.Up)) - { - Console.WriteLine("moving.."); - camera.MoveCamera(new Vector2(0, 5)); - } - if (Keyboard.GetState().IsKeyDown(Keys.Down)) - { - Console.WriteLine("moving.."); - camera.MoveCamera(new Vector2(0, -5)); - } - camera.Apply(); - - base.Update(gameTime); - } - float angleDeg = 0; - /// - /// This is called when the game should draw itself. - /// - /// Provides a snapshot of timing values. - protected override void Draw(GameTime gameTime) - { - angleDeg++; - if (angleDeg > 360) angleDeg = 0; - GraphicsDevice.Clear(Color.Black); - rr.Begin(true); - rr.Draw(25, 25, 70, 70, Color.Purple); - rr.End(); - - rr.Begin(false); - rr.Draw(75, 75, 70, 70, Color.Green, MathHelper.ToRadians(angleDeg)); - rr.End(); - base.Draw(gameTime); - } - } -} diff --git a/CameraTest/CameraTest.csproj b/CameraTest/CameraTest.csproj deleted file mode 100644 index 586c16f..0000000 --- a/CameraTest/CameraTest.csproj +++ /dev/null @@ -1,123 +0,0 @@ - - - - - Debug - AnyCPU - 8.0.30703 - 2.0 - {4A9796EE-D10D-4ED8-AE6E-9CE96C3D4FE9} - WinExe - Properties - CameraTest - CameraTest - 512 - DesktopGL - v4.5 - - - true - bin\$(MonoGamePlatform)\$(Platform)\$(Configuration)\ - DEBUG;TRACE;LINUX - full - AnyCPU - prompt - false - 4 - - - bin\$(MonoGamePlatform)\$(Platform)\$(Configuration)\ - TRACE;LINUX - true - pdbonly - AnyCPU - prompt - false - 4 - - - Icon.ico - - - app.manifest - - - - - - - - - $(MonoGameInstallDirectory)\MonoGame\v3.0\Assemblies\DesktopGL\MonoGame.Framework.dll - - - - - - - - - - - - x86\SDL2.dll - PreserveNewest - - - x64\SDL2.dll - PreserveNewest - - - x86\soft_oal.dll - PreserveNewest - - - x64\soft_oal.dll - PreserveNewest - - - x86\libSDL2-2.0.so.0 - PreserveNewest - - - x64\libSDL2-2.0.so.0 - PreserveNewest - - - x86\libopenal.so.1 - PreserveNewest - - - x64\libopenal.so.1 - PreserveNewest - - - libSDL2-2.0.0.dylib - PreserveNewest - - - libopenal.1.dylib - PreserveNewest - - - MonoGame.Framework.dll.config - PreserveNewest - - - - - - {95a926dc-1482-4368-91da-8d30ac04740a} - RecrownedAthenaeum - - - - - - \ No newline at end of file diff --git a/CameraTest/Content/Content.mgcb b/CameraTest/Content/Content.mgcb deleted file mode 100644 index ddc4c36..0000000 --- a/CameraTest/Content/Content.mgcb +++ /dev/null @@ -1,15 +0,0 @@ - -#----------------------------- Global Properties ----------------------------# - -/outputDir:bin/$(Platform) -/intermediateDir:obj/$(Platform) -/platform:DesktopGL -/config: -/profile:Reach -/compress:False - -#-------------------------------- References --------------------------------# - - -#---------------------------------- Content ---------------------------------# - diff --git a/CameraTest/Icon.bmp b/CameraTest/Icon.bmp deleted file mode 100644 index 2b48165..0000000 Binary files a/CameraTest/Icon.bmp and /dev/null differ diff --git a/CameraTest/Icon.ico b/CameraTest/Icon.ico deleted file mode 100644 index 7d9dec1..0000000 Binary files a/CameraTest/Icon.ico and /dev/null differ diff --git a/CameraTest/Program.cs b/CameraTest/Program.cs deleted file mode 100644 index 5af3fb9..0000000 --- a/CameraTest/Program.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; - -namespace CameraTest -{ - /// - /// The main class. - /// - public static class Program - { - /// - /// The main entry point for the application. - /// - [STAThread] - static void Main() - { - using (var game = new CameraTest()) - game.Run(); - } - } -} diff --git a/CameraTest/Properties/AssemblyInfo.cs b/CameraTest/Properties/AssemblyInfo.cs deleted file mode 100644 index c939579..0000000 --- a/CameraTest/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("CameraTest")] -[assembly: AssemblyProduct("CameraTest")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyCopyright("Copyright © 2019")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("185d293a-bbcb-409b-9f46-c3ede6883b16")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/CameraTest/app.manifest b/CameraTest/app.manifest deleted file mode 100644 index 9b3972c..0000000 --- a/CameraTest/app.manifest +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true/pm - - - - diff --git a/Demo/Content/Content.mgcb b/Demo/Content/Content.mgcb deleted file mode 100644 index ddc4c36..0000000 --- a/Demo/Content/Content.mgcb +++ /dev/null @@ -1,15 +0,0 @@ - -#----------------------------- Global Properties ----------------------------# - -/outputDir:bin/$(Platform) -/intermediateDir:obj/$(Platform) -/platform:DesktopGL -/config: -/profile:Reach -/compress:False - -#-------------------------------- References --------------------------------# - - -#---------------------------------- Content ---------------------------------# - diff --git a/Demo/Demo.cs b/Demo/Demo.cs deleted file mode 100644 index 4dd1d68..0000000 --- a/Demo/Demo.cs +++ /dev/null @@ -1,99 +0,0 @@ -using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; -using Microsoft.Xna.Framework.Input; - -namespace Demo -{ - /// - /// This is the main type for your game. - /// - public class Demo : Game - { - GraphicsDeviceManager graphics; - SpriteBatch spriteBatch; - - BasicEffect basicEffect; - VertexPositionColor[] vertices; - - public Demo() - { - graphics = new GraphicsDeviceManager(this); - Content.RootDirectory = "Content"; - } - - /// - /// 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 - basicEffect = new BasicEffect(GraphicsDevice); - basicEffect.VertexColorEnabled = true; - - vertices = new VertexPositionColor[4]; - vertices[0] = new VertexPositionColor(new Vector3(0, 0, 0), Color.Red); - vertices[1] = new VertexPositionColor(new Vector3(10, 0, 0), Color.Red); - vertices[2] = new VertexPositionColor(new Vector3(10, 10, 0), Color.Red); - vertices[3] = new VertexPositionColor(new Vector3(0, 10, 0), Color.Red); - 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); - basicEffect.World = Matrix.CreateOrthographicOffCenter(new Rectangle(0, 0, GraphicsDevice.Viewport.Width, GraphicsDevice.Viewport.Height), 0, 1); - - // TODO: use this.Content to load your game content here - } - - /// - /// UnloadContent will be called once per game and is the place to unload - /// game-specific content. - /// - protected override void UnloadContent() - { - // TODO: Unload any non ContentManager 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) - { - if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape)) - 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) - { - GraphicsDevice.Clear(Color.CornflowerBlue); - - foreach (EffectPass effectPass in basicEffect.CurrentTechnique.Passes) - { - effectPass.Apply(); - GraphicsDevice.DrawUserPrimitives(PrimitiveType.LineStrip, vertices, 0, 4); - } - // TODO: Add your drawing code here - - base.Draw(gameTime); - } - } -} diff --git a/Demo/Demo.csproj b/Demo/Demo.csproj deleted file mode 100644 index 8335f21..0000000 --- a/Demo/Demo.csproj +++ /dev/null @@ -1,117 +0,0 @@ - - - - - Debug - AnyCPU - 8.0.30703 - 2.0 - {A56A7DFD-C5E7-4D9B-9A9F-25F94EC824BD} - WinExe - Properties - Demo - Demo - 512 - DesktopGL - v4.5 - - - true - bin\$(MonoGamePlatform)\$(Platform)\$(Configuration)\ - DEBUG;TRACE;LINUX - full - AnyCPU - prompt - false - 4 - - - bin\$(MonoGamePlatform)\$(Platform)\$(Configuration)\ - TRACE;LINUX - true - pdbonly - AnyCPU - prompt - false - 4 - - - Icon.ico - - - app.manifest - - - - - - - - - $(MonoGameInstallDirectory)\MonoGame\v3.0\Assemblies\DesktopGL\MonoGame.Framework.dll - - - - - - - - - - - - x86\SDL2.dll - PreserveNewest - - - x64\SDL2.dll - PreserveNewest - - - x86\soft_oal.dll - PreserveNewest - - - x64\soft_oal.dll - PreserveNewest - - - x86\libSDL2-2.0.so.0 - PreserveNewest - - - x64\libSDL2-2.0.so.0 - PreserveNewest - - - x86\libopenal.so.1 - PreserveNewest - - - x64\libopenal.so.1 - PreserveNewest - - - libSDL2-2.0.0.dylib - PreserveNewest - - - libopenal.1.dylib - PreserveNewest - - - MonoGame.Framework.dll.config - PreserveNewest - - - - - - - \ No newline at end of file diff --git a/Demo/Icon.bmp b/Demo/Icon.bmp deleted file mode 100644 index 2b48165..0000000 Binary files a/Demo/Icon.bmp and /dev/null differ diff --git a/Demo/Icon.ico b/Demo/Icon.ico deleted file mode 100644 index 7d9dec1..0000000 Binary files a/Demo/Icon.ico and /dev/null differ diff --git a/Demo/Program.cs b/Demo/Program.cs deleted file mode 100644 index 5fe050b..0000000 --- a/Demo/Program.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; - -namespace Demo -{ - /// - /// The main class. - /// - public static class Program - { - /// - /// The main entry point for the application. - /// - [STAThread] - static void Main() - { - using (var game = new Demo()) - game.Run(); - } - } -} diff --git a/Demo/Properties/AssemblyInfo.cs b/Demo/Properties/AssemblyInfo.cs deleted file mode 100644 index 9fc03cb..0000000 --- a/Demo/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("Demo")] -[assembly: AssemblyProduct("Demo")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyCopyright("Copyright © 2019")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("7d7ad025-99d9-4c0b-9821-94d507213959")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Demo/app.manifest b/Demo/app.manifest deleted file mode 100644 index 251b21a..0000000 --- a/Demo/app.manifest +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true/pm - - - - diff --git a/RecrownedAthenaeum.sln b/RecrownedAthenaeum.sln index 119010d..ae868d0 100644 --- a/RecrownedAthenaeum.sln +++ b/RecrownedAthenaeum.sln @@ -9,8 +9,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RecrownedAthenaeum.Pipeline EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RecrownedAthenaeum.Tools", "RecrownedAthenaeum.Tools\RecrownedAthenaeum.Tools.csproj", "{51E77E29-AD31-449E-9C98-980E5C978EF9}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CameraTest", "CameraTest\CameraTest.csproj", "{4A9796EE-D10D-4ED8-AE6E-9CE96C3D4FE9}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -29,10 +27,6 @@ Global {51E77E29-AD31-449E-9C98-980E5C978EF9}.Debug|Any CPU.Build.0 = Debug|Any CPU {51E77E29-AD31-449E-9C98-980E5C978EF9}.Release|Any CPU.ActiveCfg = Release|Any CPU {51E77E29-AD31-449E-9C98-980E5C978EF9}.Release|Any CPU.Build.0 = Release|Any CPU - {4A9796EE-D10D-4ED8-AE6E-9CE96C3D4FE9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {4A9796EE-D10D-4ED8-AE6E-9CE96C3D4FE9}.Debug|Any CPU.Build.0 = Debug|Any CPU - {4A9796EE-D10D-4ED8-AE6E-9CE96C3D4FE9}.Release|Any CPU.ActiveCfg = Release|Any CPU - {4A9796EE-D10D-4ED8-AE6E-9CE96C3D4FE9}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE