Player rects

This commit is contained in:
2022-08-13 21:13:58 +02:00
commit 17249e022b
60 changed files with 747 additions and 0 deletions

View File

@@ -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"
]
}
}
}

27
Pong/Content/Content.mgcb Normal file
View File

@@ -0,0 +1,27 @@
#----------------------------- Global Properties ----------------------------#
/outputDir:bin/$(Platform)
/intermediateDir:obj/$(Platform)
/platform:DesktopGL
/config:
/profile:Reach
/compress:False
#-------------------------------- References --------------------------------#
#---------------------------------- Content ---------------------------------#
#begin Textures/ball.png
/importer:TextureImporter
/processor:TextureProcessor
/processorParam:ColorKeyColor=255,0,255,255
/processorParam:ColorKeyEnabled=True
/processorParam:GenerateMipmaps=False
/processorParam:PremultiplyAlpha=True
/processorParam:ResizeToPowerOfTwo=False
/processorParam:MakeSquare=False
/processorParam:TextureFormat=Color
/build:Textures/ball.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8"?><SourceFileCollection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Profile>Reach</Profile><Platform>DesktopGL</Platform><Config /><SourceFiles><File>C:/dev/Pong/Pong/Content/Textures/ball.png</File></SourceFiles><DestFiles><File xsi:nil="true" /></DestFiles></SourceFileCollection>

View File

@@ -0,0 +1 @@
Source File,Dest File,Processor Type,Content Type,Source File Size,Dest File Size,Build Seconds

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8"?><PipelineBuildEvent xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><SourceFile>C:/dev/Pong/Pong/Content/Textures/ball.png</SourceFile><SourceTime>2022-08-13T20:35:13.6414651+02:00</SourceTime><DestFile>C:/dev/Pong/Pong/Content/bin/DesktopGL/Content/Textures/ball.xnb</DestFile><DestTime>2022-08-13T20:35:20.5594552+02:00</DestTime><Importer>TextureImporter</Importer><ImporterTime>2022-07-26T13:44:56+02:00</ImporterTime><Processor>TextureProcessor</Processor><ProcessorTime>2022-07-26T13:44:56+02:00</ProcessorTime><Parameters><Key>ColorKeyColor</Key><Value>255,0,255,255</Value></Parameters><Parameters><Key>ColorKeyEnabled</Key><Value>True</Value></Parameters><Parameters><Key>GenerateMipmaps</Key><Value>False</Value></Parameters><Parameters><Key>PremultiplyAlpha</Key><Value>True</Value></Parameters><Parameters><Key>ResizeToPowerOfTwo</Key><Value>False</Value></Parameters><Parameters><Key>MakeSquare</Key><Value>False</Value></Parameters><Parameters><Key>TextureFormat</Key><Value>Color</Value></Parameters><Dependencies /><BuildAsset /><BuildOutput /></PipelineBuildEvent>

119
Pong/Game1.cs Normal file
View File

@@ -0,0 +1,119 @@
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using System;
//open content editor with mgcb-editor-windows
namespace Pong {
public class Game1 : Game {
private GraphicsDeviceManager _graphics;
private SpriteBatch _spriteBatch;
private Random random;
public Texture2D ballTexture;
public Texture2D playerOneTexture;
public Texture2D playerTwoTexture;
public Rectangle playerOne;
public Rectangle playerTwo;
Vector2 ballPosition;
Vector2 playerOnePosition;
Vector2 playerTwoPosition;
Vector2 ballDir;
float ballSpeed;
public Game1() {
_graphics = new GraphicsDeviceManager(this);
Content.RootDirectory = "Content";
IsMouseVisible = true;
Window.AllowUserResizing = true;
}
protected override void Initialize() {
// TODO: Add your initialization logic here
Window.Title = "Pong";
_graphics.PreferredBackBufferHeight = 720;
_graphics.PreferredBackBufferWidth = 1280;
_graphics.ApplyChanges();
random = new Random();
playerOneTexture = new Texture2D(_graphics.GraphicsDevice, 20, 125);
playerTwoTexture = new Texture2D(_graphics.GraphicsDevice, 20, 125);
Color[] data = new Color[playerOneTexture.Width*playerOneTexture.Height];
for (int i = 0; i < data.Length; ++i) data[i] = Color.White;
playerOneTexture.SetData(data);
playerTwoTexture.SetData(data);
ballPosition = new Vector2(_graphics.PreferredBackBufferWidth / 2, _graphics.PreferredBackBufferHeight / 2);
ballDir = new Vector2(random.Next(-7, 7), random.Next(-7, 7));
ballSpeed = 100.0f;
playerOnePosition = new Vector2(25, _graphics.PreferredBackBufferHeight / 2 - playerOneTexture.Height / 2);
playerTwoPosition = new Vector2(_graphics.PreferredBackBufferWidth - 50, _graphics.PreferredBackBufferHeight / 2 - playerTwoTexture.Height / 2);
base.Initialize();
}
protected override void LoadContent() {
_spriteBatch = new SpriteBatch(GraphicsDevice);
// TODO: use this.Content to load your game content here
ballTexture = Content.Load<Texture2D>("Textures/ball");
}
protected override void Update(GameTime gameTime) {
if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape))
Exit();
/*KeyboardState kState = Keyboard.GetState();
if (kState.IsKeyDown(Keys.Up)) {
ballPosition.Y -= ballSpeed * (float)gameTime.ElapsedGameTime.TotalSeconds;
}
if (kState.IsKeyDown(Keys.Down)) {
ballPosition.Y += ballSpeed * (float)gameTime.ElapsedGameTime.TotalSeconds;
}
if (kState.IsKeyDown(Keys.Left)) {
ballPosition.X -= ballSpeed * (float)gameTime.ElapsedGameTime.TotalSeconds;
}
if (kState.IsKeyDown(Keys.Right)) {
ballPosition.X += ballSpeed * (float)gameTime.ElapsedGameTime.TotalSeconds;
}*/
ballPosition.X += ballDir.X * ballSpeed * (float)gameTime.ElapsedGameTime.TotalSeconds;
ballPosition.Y += ballDir.Y * ballSpeed * (float)gameTime.ElapsedGameTime.TotalSeconds;
//Bouncing
if (ballPosition.X > _graphics.PreferredBackBufferWidth - ballTexture.Width / 2) {
ballDir.X = -ballDir.X; //_graphics.PreferredBackBufferWidth - ballTexture.Width / 2;
} else if (ballPosition.X < ballTexture.Width / 2) {
ballDir.X = -ballDir.X; //ballPosition.X = ballTexture.Width / 2;
}
if (ballPosition.Y > _graphics.PreferredBackBufferHeight - ballTexture.Height / 2) {
ballDir.Y = -ballDir.Y; //ballPosition.Y = _graphics.PreferredBackBufferHeight - ballTexture.Height / 2;
} else if (ballPosition.Y < ballTexture.Height / 2) {
ballDir.Y = -ballDir.Y; //ballPosition.Y = ballTexture.Height / 2;
}
base.Update(gameTime);
}
protected override void Draw(GameTime gameTime) {
GraphicsDevice.Clear(Color.Black);
// TODO: Add your drawing code here
_spriteBatch.Begin();
_spriteBatch.Draw(ballTexture, ballPosition, null, Color.White, 0f, new Vector2(ballTexture.Width / 2, ballTexture.Height / 2), Vector2.One, SpriteEffects.None, 0f);
_spriteBatch.Draw(playerOneTexture, new Rectangle((int)playerOnePosition.X, (int)playerOnePosition.Y, playerOneTexture.Width, playerOneTexture.Height), Color.White);
_spriteBatch.Draw(playerTwoTexture, new Rectangle((int)playerTwoPosition.X, (int)playerTwoPosition.Y, playerTwoTexture.Width, playerTwoTexture.Height), Color.White);
_spriteBatch.End();
base.Draw(gameTime);
}
}
}

BIN
Pong/Icon.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 KiB

BIN
Pong/Icon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

29
Pong/Pong.csproj Normal file
View File

@@ -0,0 +1,29 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<RollForward>Major</RollForward>
<PublishReadyToRun>false</PublishReadyToRun>
<TieredCompilation>false</TieredCompilation>
</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>

3
Pong/Program.cs Normal file
View File

@@ -0,0 +1,3 @@
using var game = new Pong.Game1();
game.Run();

43
Pong/app.manifest Normal file
View File

@@ -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="Pong"/>
<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>

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,92 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"Pong/1.0.0": {
"dependencies": {
"MonoGame.Content.Builder.Task": "3.8.1.303",
"MonoGame.Framework.DesktopGL": "3.8.1.303"
},
"runtime": {
"Pong.dll": {}
}
},
"MonoGame.Content.Builder.Task/3.8.1.303": {},
"MonoGame.Framework.DesktopGL/3.8.1.303": {
"runtime": {
"lib/net6.0/MonoGame.Framework.dll": {
"assemblyVersion": "3.8.1.303",
"fileVersion": "3.8.1.303"
}
},
"runtimeTargets": {
"runtimes/linux-x64/native/libSDL2-2.0.so.0": {
"rid": "linux-x64",
"assetType": "native",
"fileVersion": "0.0.0.0"
},
"runtimes/linux-x64/native/libopenal.so.1": {
"rid": "linux-x64",
"assetType": "native",
"fileVersion": "0.0.0.0"
},
"runtimes/osx/native/libSDL2.dylib": {
"rid": "osx",
"assetType": "native",
"fileVersion": "0.0.0.0"
},
"runtimes/osx/native/libopenal.1.dylib": {
"rid": "osx",
"assetType": "native",
"fileVersion": "0.0.0.0"
},
"runtimes/win-x64/native/SDL2.dll": {
"rid": "win-x64",
"assetType": "native",
"fileVersion": "2.0.20.0"
},
"runtimes/win-x64/native/soft_oal.dll": {
"rid": "win-x64",
"assetType": "native",
"fileVersion": "0.0.0.0"
},
"runtimes/win-x86/native/SDL2.dll": {
"rid": "win-x86",
"assetType": "native",
"fileVersion": "2.0.20.0"
},
"runtimes/win-x86/native/soft_oal.dll": {
"rid": "win-x86",
"assetType": "native",
"fileVersion": "0.0.0.0"
}
}
}
}
},
"libraries": {
"Pong/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"MonoGame.Content.Builder.Task/3.8.1.303": {
"type": "package",
"serviceable": true,
"sha512": "sha512-9Ilzzje62LhWElbPNEl7vh7XsRSbze+lvCJdZtTZUGu48FRgvYN6THURwIB9PN98EI33/Wnf6iuShNUtD7hL4Q==",
"path": "monogame.content.builder.task/3.8.1.303",
"hashPath": "monogame.content.builder.task.3.8.1.303.nupkg.sha512"
},
"MonoGame.Framework.DesktopGL/3.8.1.303": {
"type": "package",
"serviceable": true,
"sha512": "sha512-eGYhqn0n1olk8MNYeE9EuBmoNNECN1T18rPMaQpkzsEQ0H3nVyFPXC+uCo78v5pi5juQpJ3PSFnSkjzZJ1U58A==",
"path": "monogame.framework.desktopgl/3.8.1.303",
"hashPath": "monogame.framework.desktopgl.3.8.1.303.nupkg.sha512"
}
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,13 @@
{
"runtimeOptions": {
"tfm": "net6.0",
"rollForward": "Major",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "6.0.0"
},
"configProperties": {
"System.Runtime.TieredCompilation": false
}
}
}

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")]

View File

@@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Pong")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Pong")]
[assembly: System.Reflection.AssemblyTitleAttribute("Pong")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Generated by the MSBuild WriteCodeFragment class.

View File

@@ -0,0 +1 @@
d5febc48f78df6b12243e20a0c6eafb0c5c0bfd8

View File

@@ -0,0 +1,10 @@
is_global = true
build_property.TargetFramework = net6.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = Pong
build_property.ProjectDir = C:\dev\Pong\Pong\

Binary file not shown.

View File

@@ -0,0 +1 @@
fb351e05fb47f0e2e25957b5948e4f2828a054aa

View File

@@ -0,0 +1,26 @@
C:\dev\Pong\Pong\bin\Debug\net6.0\Content\Textures\ball.xnb
C:\dev\Pong\Pong\bin\Debug\net6.0\Pong.exe
C:\dev\Pong\Pong\bin\Debug\net6.0\Pong.deps.json
C:\dev\Pong\Pong\bin\Debug\net6.0\Pong.runtimeconfig.json
C:\dev\Pong\Pong\bin\Debug\net6.0\Pong.dll
C:\dev\Pong\Pong\bin\Debug\net6.0\Pong.pdb
C:\dev\Pong\Pong\bin\Debug\net6.0\MonoGame.Framework.dll
C:\dev\Pong\Pong\bin\Debug\net6.0\runtimes\linux-x64\native\libSDL2-2.0.so.0
C:\dev\Pong\Pong\bin\Debug\net6.0\runtimes\linux-x64\native\libopenal.so.1
C:\dev\Pong\Pong\bin\Debug\net6.0\runtimes\osx\native\libSDL2.dylib
C:\dev\Pong\Pong\bin\Debug\net6.0\runtimes\osx\native\libopenal.1.dylib
C:\dev\Pong\Pong\bin\Debug\net6.0\runtimes\win-x64\native\SDL2.dll
C:\dev\Pong\Pong\bin\Debug\net6.0\runtimes\win-x64\native\soft_oal.dll
C:\dev\Pong\Pong\bin\Debug\net6.0\runtimes\win-x86\native\SDL2.dll
C:\dev\Pong\Pong\bin\Debug\net6.0\runtimes\win-x86\native\soft_oal.dll
C:\dev\Pong\Pong\obj\Debug\net6.0\Pong.csproj.AssemblyReference.cache
C:\dev\Pong\Pong\obj\Debug\net6.0\Pong.GeneratedMSBuildEditorConfig.editorconfig
C:\dev\Pong\Pong\obj\Debug\net6.0\Pong.AssemblyInfoInputs.cache
C:\dev\Pong\Pong\obj\Debug\net6.0\Pong.AssemblyInfo.cs
C:\dev\Pong\Pong\obj\Debug\net6.0\Pong.csproj.CoreCompileInputs.cache
C:\dev\Pong\Pong\obj\Debug\net6.0\Pong.csproj.CopyComplete
C:\dev\Pong\Pong\obj\Debug\net6.0\Pong.dll
C:\dev\Pong\Pong\obj\Debug\net6.0\refint\Pong.dll
C:\dev\Pong\Pong\obj\Debug\net6.0\Pong.pdb
C:\dev\Pong\Pong\obj\Debug\net6.0\Pong.genruntimeconfig.cache
C:\dev\Pong\Pong\obj\Debug\net6.0\ref\Pong.dll

Binary file not shown.

View File

@@ -0,0 +1 @@
b0ab9d5901f6246bee6f471a46271a82dc0064d4

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,77 @@
{
"format": 1,
"restore": {
"C:\\dev\\Pong\\Pong\\Pong.csproj": {}
},
"projects": {
"C:\\dev\\Pong\\Pong\\Pong.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\dev\\Pong\\Pong\\Pong.csproj",
"projectName": "Pong",
"projectPath": "C:\\dev\\Pong\\Pong\\Pong.csproj",
"packagesPath": "C:\\Users\\Tom\\.nuget\\packages\\",
"outputPath": "C:\\dev\\Pong\\Pong\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\Tom\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"dependencies": {
"MonoGame.Content.Builder.Task": {
"target": "Package",
"version": "[3.8.1.303, )"
},
"MonoGame.Framework.DesktopGL": {
"target": "Package",
"version": "[3.8.1.303, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.400\\RuntimeIdentifierGraph.json"
}
}
}
}
}

View File

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Tom\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.3.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\Tom\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
</ItemGroup>
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)monogame.content.builder.task\3.8.1.303\build\MonoGame.Content.Builder.Task.props" Condition="Exists('$(NuGetPackageRoot)monogame.content.builder.task\3.8.1.303\build\MonoGame.Content.Builder.Task.props')" />
</ImportGroup>
</Project>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)monogame.framework.desktopgl\3.8.1.303\build\MonoGame.Framework.DesktopGL.targets" Condition="Exists('$(NuGetPackageRoot)monogame.framework.desktopgl\3.8.1.303\build\MonoGame.Framework.DesktopGL.targets')" />
<Import Project="$(NuGetPackageRoot)monogame.content.builder.task\3.8.1.303\build\MonoGame.Content.Builder.Task.targets" Condition="Exists('$(NuGetPackageRoot)monogame.content.builder.task\3.8.1.303\build\MonoGame.Content.Builder.Task.targets')" />
</ImportGroup>
</Project>

View File

@@ -0,0 +1,177 @@
{
"version": 3,
"targets": {
"net6.0": {
"MonoGame.Content.Builder.Task/3.8.1.303": {
"type": "package",
"build": {
"build/MonoGame.Content.Builder.Task.props": {},
"build/MonoGame.Content.Builder.Task.targets": {}
}
},
"MonoGame.Framework.DesktopGL/3.8.1.303": {
"type": "package",
"compile": {
"lib/net6.0/MonoGame.Framework.dll": {}
},
"runtime": {
"lib/net6.0/MonoGame.Framework.dll": {}
},
"build": {
"build/MonoGame.Framework.DesktopGL.targets": {}
},
"runtimeTargets": {
"runtimes/linux-x64/native/libSDL2-2.0.so.0": {
"assetType": "native",
"rid": "linux-x64"
},
"runtimes/linux-x64/native/libopenal.so.1": {
"assetType": "native",
"rid": "linux-x64"
},
"runtimes/osx/native/libSDL2.dylib": {
"assetType": "native",
"rid": "osx"
},
"runtimes/osx/native/libopenal.1.dylib": {
"assetType": "native",
"rid": "osx"
},
"runtimes/win-x64/native/SDL2.dll": {
"assetType": "native",
"rid": "win-x64"
},
"runtimes/win-x64/native/soft_oal.dll": {
"assetType": "native",
"rid": "win-x64"
},
"runtimes/win-x86/native/SDL2.dll": {
"assetType": "native",
"rid": "win-x86"
},
"runtimes/win-x86/native/soft_oal.dll": {
"assetType": "native",
"rid": "win-x86"
}
}
}
}
},
"libraries": {
"MonoGame.Content.Builder.Task/3.8.1.303": {
"sha512": "9Ilzzje62LhWElbPNEl7vh7XsRSbze+lvCJdZtTZUGu48FRgvYN6THURwIB9PN98EI33/Wnf6iuShNUtD7hL4Q==",
"type": "package",
"path": "monogame.content.builder.task/3.8.1.303",
"files": [
".nupkg.metadata",
".signature.p7s",
"Icon.png",
"build/MonoGame.Content.Builder.Task.props",
"build/MonoGame.Content.Builder.Task.targets",
"monogame.content.builder.task.3.8.1.303.nupkg.sha512",
"monogame.content.builder.task.nuspec"
]
},
"MonoGame.Framework.DesktopGL/3.8.1.303": {
"sha512": "eGYhqn0n1olk8MNYeE9EuBmoNNECN1T18rPMaQpkzsEQ0H3nVyFPXC+uCo78v5pi5juQpJ3PSFnSkjzZJ1U58A==",
"type": "package",
"path": "monogame.framework.desktopgl/3.8.1.303",
"files": [
".nupkg.metadata",
".signature.p7s",
"Icon.png",
"build/MonoGame.Framework.DesktopGL.targets",
"lib/net6.0/MonoGame.Framework.dll",
"monogame.framework.desktopgl.3.8.1.303.nupkg.sha512",
"monogame.framework.desktopgl.nuspec",
"runtimes/linux-x64/native/libSDL2-2.0.so.0",
"runtimes/linux-x64/native/libopenal.so.1",
"runtimes/osx/native/libSDL2.dylib",
"runtimes/osx/native/libopenal.1.dylib",
"runtimes/win-x64/native/SDL2.dll",
"runtimes/win-x64/native/soft_oal.dll",
"runtimes/win-x86/native/SDL2.dll",
"runtimes/win-x86/native/soft_oal.dll"
]
}
},
"projectFileDependencyGroups": {
"net6.0": [
"MonoGame.Content.Builder.Task >= 3.8.1.303",
"MonoGame.Framework.DesktopGL >= 3.8.1.303"
]
},
"packageFolders": {
"C:\\Users\\Tom\\.nuget\\packages\\": {},
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\dev\\Pong\\Pong\\Pong.csproj",
"projectName": "Pong",
"projectPath": "C:\\dev\\Pong\\Pong\\Pong.csproj",
"packagesPath": "C:\\Users\\Tom\\.nuget\\packages\\",
"outputPath": "C:\\dev\\Pong\\Pong\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\Tom\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"dependencies": {
"MonoGame.Content.Builder.Task": {
"target": "Package",
"version": "[3.8.1.303, )"
},
"MonoGame.Framework.DesktopGL": {
"target": "Package",
"version": "[3.8.1.303, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.400\\RuntimeIdentifierGraph.json"
}
}
}
}

View File

@@ -0,0 +1,11 @@
{
"version": 2,
"dgSpecHash": "igoW5/T5SL67vZTWmoWD/R8Lpa9HuYb01N08826iKN4mnyrL3AYTJ5YBtmvLJpt2T5ANgqrfjeNhAmo3TRtINw==",
"success": true,
"projectFilePath": "C:\\dev\\Pong\\Pong\\Pong.csproj",
"expectedPackageFiles": [
"C:\\Users\\Tom\\.nuget\\packages\\monogame.content.builder.task\\3.8.1.303\\monogame.content.builder.task.3.8.1.303.nupkg.sha512",
"C:\\Users\\Tom\\.nuget\\packages\\monogame.framework.desktopgl\\3.8.1.303\\monogame.framework.desktopgl.3.8.1.303.nupkg.sha512"
],
"logs": []
}