commit fe2572f9f210c13b9c923e9b23c2191768f629e5 Author: NikolajDanger Date: Sun Oct 24 14:49:57 2021 +0200 :tada: init commit diff --git a/Content/Content.mgcb b/Content/Content.mgcb new file mode 100644 index 0000000..ddc4c36 --- /dev/null +++ b/Content/Content.mgcb @@ -0,0 +1,15 @@ + +#----------------------------- Global Properties ----------------------------# + +/outputDir:bin/$(Platform) +/intermediateDir:obj/$(Platform) +/platform:DesktopGL +/config: +/profile:Reach +/compress:False + +#-------------------------------- References --------------------------------# + + +#---------------------------------- Content ---------------------------------# + diff --git a/Game1.cs b/Game1.cs new file mode 100644 index 0000000..4d971c9 --- /dev/null +++ b/Game1.cs @@ -0,0 +1,52 @@ +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Microsoft.Xna.Framework.Input; + +namespace Solitaire +{ + 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); + } + } +} diff --git a/Icon.bmp b/Icon.bmp new file mode 100644 index 0000000..2b48165 Binary files /dev/null and b/Icon.bmp differ diff --git a/Icon.ico b/Icon.ico new file mode 100644 index 0000000..7d9dec1 Binary files /dev/null and b/Icon.ico differ diff --git a/Program.cs b/Program.cs new file mode 100644 index 0000000..be34f3e --- /dev/null +++ b/Program.cs @@ -0,0 +1,14 @@ +using System; + +namespace Solitaire +{ + public static class Program + { + [STAThread] + static void Main() + { + using (var game = new Game1()) + game.Run(); + } + } +} diff --git a/Solitaire.csproj b/Solitaire.csproj new file mode 100644 index 0000000..db416ef --- /dev/null +++ b/Solitaire.csproj @@ -0,0 +1,30 @@ + + + WinExe + netcoreapp3.1 + false + false + + + app.manifest + Icon.ico + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app.manifest b/app.manifest new file mode 100644 index 0000000..7b70b93 --- /dev/null +++ b/app.manifest @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true/pm + permonitorv2,permonitor + + + +