-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
375 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"version": 1, | ||
"isRoot": true, | ||
"tools": { | ||
"dotnet-mgcb-editor": { | ||
"version": "3.8.1.303", | ||
"commands": [ | ||
"mgcb-editor" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
#----------------------------- Global Properties ----------------------------# | ||
|
||
/outputDir:bin/$(Platform) | ||
/intermediateDir:obj/$(Platform) | ||
/platform:DesktopGL | ||
/config: | ||
/profile:Reach | ||
/compress:False | ||
|
||
#-------------------------------- References --------------------------------# | ||
|
||
|
||
#---------------------------------- Content ---------------------------------# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<OutputType>WinExe</OutputType> | ||
<TargetFramework>netcoreapp3.1</TargetFramework> | ||
<PublishReadyToRun>false</PublishReadyToRun> | ||
<TieredCompilation>false</TieredCompilation> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<ApplicationManifest>app.manifest</ApplicationManifest> | ||
<ApplicationIcon>Icon.ico</ApplicationIcon> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<DotnetCommand>dotnet --roll-forward Major</DotnetCommand> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<None Remove="Icon.ico" /> | ||
<None Remove="Icon.bmp" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<EmbeddedResource Include="Icon.ico" /> | ||
<EmbeddedResource Include="Icon.bmp" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<MonoGameContentReference Include="Content\Content.mgcb" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<TrimmerRootAssembly Include="Microsoft.Xna.Framework.Content.ContentTypeReader" Visible="false" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="MonoGame.Framework.DesktopGL" Version="3.8.0.1641" /> | ||
<PackageReference Include="MonoGame.Content.Builder.Task" Version="3.8.0.1641" GeneratePathProperty="true" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
using Microsoft.Xna.Framework; | ||
using Microsoft.Xna.Framework.Graphics; | ||
using Microsoft.Xna.Framework.Input; | ||
|
||
namespace Desktop38 | ||
{ | ||
public class Game1 : Game | ||
{ | ||
private GraphicsDeviceManager _graphics; | ||
private SpriteBatch _spriteBatch; | ||
|
||
public Game1() | ||
{ | ||
_graphics = new GraphicsDeviceManager(this); | ||
Content.RootDirectory = "Content"; | ||
IsMouseVisible = true; | ||
} | ||
|
||
protected override void Initialize() | ||
{ | ||
// TODO: Add your initialization logic here | ||
|
||
base.Initialize(); | ||
} | ||
|
||
protected override void LoadContent() | ||
{ | ||
_spriteBatch = new SpriteBatch(GraphicsDevice); | ||
|
||
// TODO: use this.Content to load your game content here | ||
} | ||
|
||
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); | ||
} | ||
|
||
protected override void Draw(GameTime gameTime) | ||
{ | ||
GraphicsDevice.Clear(Color.CornflowerBlue); | ||
|
||
// TODO: Add your drawing code here | ||
|
||
base.Draw(gameTime); | ||
} | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System; | ||
|
||
namespace Desktop38 | ||
{ | ||
public static class Program | ||
{ | ||
[STAThread] | ||
static void Main() | ||
{ | ||
using (var game = new Game1()) | ||
game.Run(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
<assemblyIdentity version="1.0.0.0" name="Desktop38"/> | ||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"> | ||
<security> | ||
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3"> | ||
<requestedExecutionLevel level="asInvoker" uiAccess="false" /> | ||
</requestedPrivileges> | ||
</security> | ||
</trustInfo> | ||
|
||
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"> | ||
<application> | ||
<!-- A list of the Windows versions that this application has been tested on and is | ||
is designed to work with. Uncomment the appropriate elements and Windows will | ||
automatically selected the most compatible environment. --> | ||
|
||
<!-- Windows Vista --> | ||
<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" /> | ||
|
||
<!-- Windows 7 --> | ||
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" /> | ||
|
||
<!-- Windows 8 --> | ||
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" /> | ||
|
||
<!-- Windows 8.1 --> | ||
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" /> | ||
|
||
<!-- Windows 10 --> | ||
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" /> | ||
|
||
</application> | ||
</compatibility> | ||
|
||
<application xmlns="urn:schemas-microsoft-com:asm.v3"> | ||
<windowsSettings> | ||
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/pm</dpiAware> | ||
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">permonitorv2,permonitor</dpiAwareness> | ||
</windowsSettings> | ||
</application> | ||
|
||
</assembly> |
36 changes: 36 additions & 0 deletions
36
test/MonoGameSolution/Desktop381/.config/dotnet-tools.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"version": 1, | ||
"isRoot": true, | ||
"tools": { | ||
"dotnet-mgcb": { | ||
"version": "3.8.1.303", | ||
"commands": [ | ||
"mgcb" | ||
] | ||
}, | ||
"dotnet-mgcb-editor": { | ||
"version": "3.8.1.303", | ||
"commands": [ | ||
"mgcb-editor" | ||
] | ||
}, | ||
"dotnet-mgcb-editor-linux": { | ||
"version": "3.8.1.303", | ||
"commands": [ | ||
"mgcb-editor-linux" | ||
] | ||
}, | ||
"dotnet-mgcb-editor-windows": { | ||
"version": "3.8.1.303", | ||
"commands": [ | ||
"mgcb-editor-windows" | ||
] | ||
}, | ||
"dotnet-mgcb-editor-mac": { | ||
"version": "3.8.1.303", | ||
"commands": [ | ||
"mgcb-editor-mac" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
#----------------------------- Global Properties ----------------------------# | ||
|
||
/outputDir:bin/$(Platform) | ||
/intermediateDir:obj/$(Platform) | ||
/platform:DesktopGL | ||
/config: | ||
/profile:Reach | ||
/compress:False | ||
|
||
#-------------------------------- References --------------------------------# | ||
|
||
|
||
#---------------------------------- Content ---------------------------------# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<OutputType>WinExe</OutputType> | ||
<TargetFramework>net6.0</TargetFramework> | ||
<RollForward>Major</RollForward> | ||
<PublishReadyToRun>false</PublishReadyToRun> | ||
<TieredCompilation>false</TieredCompilation> | ||
<RootNamespace>MonoGameProjectDesktop381</RootNamespace> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<ApplicationManifest>app.manifest</ApplicationManifest> | ||
<ApplicationIcon>Icon.ico</ApplicationIcon> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<None Remove="Icon.ico" /> | ||
<None Remove="Icon.bmp" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<EmbeddedResource Include="Icon.ico" /> | ||
<EmbeddedResource Include="Icon.bmp" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="MonoGame.Framework.DesktopGL" Version="3.8.1.303" /> | ||
<PackageReference Include="MonoGame.Content.Builder.Task" Version="3.8.1.303" /> | ||
</ItemGroup> | ||
<Target Name="RestoreDotnetTools" BeforeTargets="Restore"> | ||
<Message Text="Restoring dotnet tools" Importance="High" /> | ||
<Exec Command="dotnet tool restore" /> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
using Microsoft.Xna.Framework; | ||
using Microsoft.Xna.Framework.Graphics; | ||
using Microsoft.Xna.Framework.Input; | ||
|
||
namespace MonoGameProjectDesktop381; | ||
|
||
public class Game1 : Game | ||
{ | ||
private GraphicsDeviceManager _graphics; | ||
private SpriteBatch _spriteBatch; | ||
|
||
public Game1() | ||
{ | ||
_graphics = new GraphicsDeviceManager(this); | ||
Content.RootDirectory = "Content"; | ||
IsMouseVisible = true; | ||
} | ||
|
||
protected override void Initialize() | ||
{ | ||
// TODO: Add your initialization logic here | ||
|
||
base.Initialize(); | ||
} | ||
|
||
protected override void LoadContent() | ||
{ | ||
_spriteBatch = new SpriteBatch(GraphicsDevice); | ||
|
||
// TODO: use this.Content to load your game content here | ||
} | ||
|
||
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); | ||
} | ||
|
||
protected override void Draw(GameTime gameTime) | ||
{ | ||
GraphicsDevice.Clear(Color.CornflowerBlue); | ||
|
||
// TODO: Add your drawing code here | ||
|
||
base.Draw(gameTime); | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
using var game = new MonoGameProjectDesktop381.Game1(); | ||
game.Run(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
<assemblyIdentity version="1.0.0.0" name="MonoGameProjectDesktop38"/> | ||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"> | ||
<security> | ||
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3"> | ||
<requestedExecutionLevel level="asInvoker" uiAccess="false" /> | ||
</requestedPrivileges> | ||
</security> | ||
</trustInfo> | ||
|
||
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"> | ||
<application> | ||
<!-- A list of the Windows versions that this application has been tested on and is | ||
is designed to work with. Uncomment the appropriate elements and Windows will | ||
automatically selected the most compatible environment. --> | ||
|
||
<!-- Windows Vista --> | ||
<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" /> | ||
|
||
<!-- Windows 7 --> | ||
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" /> | ||
|
||
<!-- Windows 8 --> | ||
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" /> | ||
|
||
<!-- Windows 8.1 --> | ||
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" /> | ||
|
||
<!-- Windows 10 --> | ||
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" /> | ||
|
||
</application> | ||
</compatibility> | ||
|
||
<application xmlns="urn:schemas-microsoft-com:asm.v3"> | ||
<windowsSettings> | ||
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/pm</dpiAware> | ||
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">permonitorv2,permonitor</dpiAwareness> | ||
</windowsSettings> | ||
</application> | ||
|
||
</assembly> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 17 | ||
VisualStudioVersion = 17.0.31903.59 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Desktop381", "Desktop381\Desktop381.csproj", "{A8AFF547-57D0-44C3-A6CE-23860F2D638E}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Desktop38", "Desktop38\Desktop38.csproj", "{3E97F549-0D4F-4A53-B863-81AAFE51B6DB}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{A8AFF547-57D0-44C3-A6CE-23860F2D638E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{A8AFF547-57D0-44C3-A6CE-23860F2D638E}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{A8AFF547-57D0-44C3-A6CE-23860F2D638E}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{A8AFF547-57D0-44C3-A6CE-23860F2D638E}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{3E97F549-0D4F-4A53-B863-81AAFE51B6DB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{3E97F549-0D4F-4A53-B863-81AAFE51B6DB}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{3E97F549-0D4F-4A53-B863-81AAFE51B6DB}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{3E97F549-0D4F-4A53-B863-81AAFE51B6DB}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
EndGlobal |