diff --git a/Wanderer/.gitignore b/Wanderer/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..7a9bd47f6bfe2909bbaf01c147545d051ab29c71 --- /dev/null +++ b/Wanderer/.gitignore @@ -0,0 +1,4 @@ +.idea/ +bin/ +obj/ +packages/ diff --git a/Wanderer/MainGame.cs b/Wanderer/MainGame.cs new file mode 100644 index 0000000000000000000000000000000000000000..910f9dfa1d770beeef9ab7a6fdeca50158fda529 --- /dev/null +++ b/Wanderer/MainGame.cs @@ -0,0 +1,42 @@ +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Microsoft.Xna.Framework.Input; + +namespace Wanderer +{ + public class MainGame : Game + { + GraphicsDeviceManager graphics; + SpriteBatch spriteBatch; + + public MainGame () + { + graphics = new GraphicsDeviceManager(this); + Content.RootDirectory = @"Content\bin"; + } + protected override void Initialize() + { + base.Initialize(); + } + protected override void LoadContent() + { + spriteBatch = new SpriteBatch(GraphicsDevice); + } + protected override void UnloadContent() + { + } + protected override void Update(GameTime gameTime) + { + if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape)) + Exit(); + + base.Update(gameTime); + } + protected override void Draw(GameTime gameTime) + { + GraphicsDevice.Clear(Color.CornflowerBlue); + + base.Draw(gameTime); + } + } +} \ No newline at end of file diff --git a/Wanderer/Program.cs b/Wanderer/Program.cs new file mode 100644 index 0000000000000000000000000000000000000000..a3a459a55156788f5efcc5d5af19e7eb5e5f59de --- /dev/null +++ b/Wanderer/Program.cs @@ -0,0 +1,14 @@ +using System; + +namespace Wanderer +{ + public static class Program + { + [STAThread] + static void Main() + { + using (var game = new MainGame()) + game.Run(); + } + } +} \ No newline at end of file diff --git a/Wanderer/Properties/AssemblyInfo.cs b/Wanderer/Properties/AssemblyInfo.cs new file mode 100644 index 0000000000000000000000000000000000000000..6be73471fc74d5e018a650dfa2d8f3236b69a6c0 --- /dev/null +++ b/Wanderer/Properties/AssemblyInfo.cs @@ -0,0 +1,35 @@ +using System.Reflection; +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("Wanderer")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Wanderer")] +[assembly: AssemblyCopyright("Copyright © 2021")] +[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("3CB4AD76-9C03-4852-A1C4-BEFE4D89A8AC")] + +// 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")] \ No newline at end of file diff --git a/Wanderer/Wanderer.csproj b/Wanderer/Wanderer.csproj new file mode 100644 index 0000000000000000000000000000000000000000..228ee121400bd9bde3500af7ad74b7d79d46a8dd --- /dev/null +++ b/Wanderer/Wanderer.csproj @@ -0,0 +1,104 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <ProjectGuid>{3CB4AD76-9C03-4852-A1C4-BEFE4D89A8AC}</ProjectGuid> + <OutputType>Exe</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>Wanderer</RootNamespace> + <AssemblyName>Wanderer</AssemblyName> + <TargetFrameworkVersion>v4.8</TargetFrameworkVersion> + <FileAlignment>512</FileAlignment> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <PlatformTarget>AnyCPU</PlatformTarget> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>bin\Debug\</OutputPath> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <PlatformTarget>AnyCPU</PlatformTarget> + <DebugType>pdbonly</DebugType> + <Optimize>true</Optimize> + <OutputPath>bin\Release\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <ItemGroup> + <Reference Include="MonoGame.Framework, Version=3.8.0.1641, Culture=neutral, PublicKeyToken=null"> + <HintPath>packages\MonoGame.Framework.WindowsDX.3.8.0.1641\lib\net452\MonoGame.Framework.dll</HintPath> + <Private>True</Private> + </Reference> + <Reference Include="SharpDX, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b4dcf0f35e5521f1"> + <HintPath>packages\SharpDX.4.0.1\lib\net45\SharpDX.dll</HintPath> + <Private>True</Private> + </Reference> + <Reference Include="SharpDX.Direct2D1, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b4dcf0f35e5521f1"> + <HintPath>packages\SharpDX.Direct2D1.4.0.1\lib\net45\SharpDX.Direct2D1.dll</HintPath> + <Private>True</Private> + </Reference> + <Reference Include="SharpDX.Direct3D11, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b4dcf0f35e5521f1"> + <HintPath>packages\SharpDX.Direct3D11.4.0.1\lib\net45\SharpDX.Direct3D11.dll</HintPath> + <Private>True</Private> + </Reference> + <Reference Include="SharpDX.Direct3D9, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b4dcf0f35e5521f1"> + <HintPath>packages\SharpDX.Direct3D9.4.0.1\lib\net45\SharpDX.Direct3D9.dll</HintPath> + <Private>True</Private> + </Reference> + <Reference Include="SharpDX.DXGI, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b4dcf0f35e5521f1"> + <HintPath>packages\SharpDX.DXGI.4.0.1\lib\net45\SharpDX.DXGI.dll</HintPath> + <Private>True</Private> + </Reference> + <Reference Include="SharpDX.Mathematics, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b4dcf0f35e5521f1"> + <HintPath>packages\SharpDX.Mathematics.4.0.1\lib\net45\SharpDX.Mathematics.dll</HintPath> + <Private>True</Private> + </Reference> + <Reference Include="SharpDX.MediaFoundation, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b4dcf0f35e5521f1"> + <HintPath>packages\SharpDX.MediaFoundation.4.0.1\lib\net45\SharpDX.MediaFoundation.dll</HintPath> + <Private>True</Private> + </Reference> + <Reference Include="SharpDX.XAudio2, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b4dcf0f35e5521f1"> + <HintPath>packages\SharpDX.XAudio2.4.0.1\lib\net45\SharpDX.XAudio2.dll</HintPath> + <Private>True</Private> + </Reference> + <Reference Include="SharpDX.XInput, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b4dcf0f35e5521f1"> + <HintPath>packages\SharpDX.XInput.4.0.1\lib\net45\SharpDX.XInput.dll</HintPath> + <Private>True</Private> + </Reference> + <Reference Include="System" /> + <Reference Include="System.Core" /> + <Reference Include="System.Data" /> + <Reference Include="System.Xml" /> + </ItemGroup> + <ItemGroup> + <Compile Include="MainGame.cs" /> + <Compile Include="Program.cs" /> + <Compile Include="Properties\AssemblyInfo.cs" /> + </ItemGroup> + <ItemGroup> + <None Include="packages.config" /> + </ItemGroup> + <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> + <Import Project="packages\MonoGame.Framework.WindowsDX.3.8.0.1641\build\MonoGame.Framework.WindowsDX.targets" Condition="Exists('packages\MonoGame.Framework.WindowsDX.3.8.0.1641\build\MonoGame.Framework.WindowsDX.targets')" /> + <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> + <PropertyGroup> + <ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105.The missing file is {0}.</ErrorText> + </PropertyGroup> + <Error Condition="!Exists('packages\MonoGame.Framework.WindowsDX.3.8.0.1641\build\MonoGame.Framework.WindowsDX.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\MonoGame.Framework.WindowsDX.3.8.0.1641\build\MonoGame.Framework.WindowsDX.targets'))" /> + </Target> + <!-- To modify your build process, add your task inside one of the targets below and uncomment it. + Other similar extension points exist, see Microsoft.Common.targets. + <Target Name="BeforeBuild"> + </Target> + <Target Name="AfterBuild"> + </Target> + --> + +</Project> diff --git a/Wanderer/Wanderer.sln b/Wanderer/Wanderer.sln new file mode 100644 index 0000000000000000000000000000000000000000..7a3e9fcd672ea44c58ed07a483928426a49eedd1 --- /dev/null +++ b/Wanderer/Wanderer.sln @@ -0,0 +1,16 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Wanderer", "Wanderer.csproj", "{3CB4AD76-9C03-4852-A1C4-BEFE4D89A8AC}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3CB4AD76-9C03-4852-A1C4-BEFE4D89A8AC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3CB4AD76-9C03-4852-A1C4-BEFE4D89A8AC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3CB4AD76-9C03-4852-A1C4-BEFE4D89A8AC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3CB4AD76-9C03-4852-A1C4-BEFE4D89A8AC}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/Wanderer/packages.config b/Wanderer/packages.config new file mode 100644 index 0000000000000000000000000000000000000000..c28a14cac1a1206c58c749b5d418fcd204bf086f --- /dev/null +++ b/Wanderer/packages.config @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="utf-8"?> +<packages> + <package id="MonoGame.Framework.WindowsDX" version="3.8.0.1641" targetFramework="net48" /> + <package id="SharpDX" version="4.0.1" targetFramework="net48" /> + <package id="SharpDX.DXGI" version="4.0.1" targetFramework="net48" /> + <package id="SharpDX.Direct2D1" version="4.0.1" targetFramework="net48" /> + <package id="SharpDX.Direct3D11" version="4.0.1" targetFramework="net48" /> + <package id="SharpDX.Direct3D9" version="4.0.1" targetFramework="net48" /> + <package id="SharpDX.Mathematics" version="4.0.1" targetFramework="net48" /> + <package id="SharpDX.MediaFoundation" version="4.0.1" targetFramework="net48" /> + <package id="SharpDX.XAudio2" version="4.0.1" targetFramework="net48" /> + <package id="SharpDX.XInput" version="4.0.1" targetFramework="net48" /> +</packages> \ No newline at end of file