diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json new file mode 100644 index 0000000..84ff03d --- /dev/null +++ b/.config/dotnet-tools.json @@ -0,0 +1,36 @@ +{ + "version": 1, + "isRoot": true, + "tools": { + "dotnet-mgcb": { + "version": "3.8.2.1105", + "commands": [ + "mgcb" + ] + }, + "dotnet-mgcb-editor": { + "version": "3.8.2.1105", + "commands": [ + "mgcb-editor" + ] + }, + "dotnet-mgcb-editor-linux": { + "version": "3.8.2.1105", + "commands": [ + "mgcb-editor-linux" + ] + }, + "dotnet-mgcb-editor-windows": { + "version": "3.8.2.1105", + "commands": [ + "mgcb-editor-windows" + ] + }, + "dotnet-mgcb-editor-mac": { + "version": "3.8.2.1105", + "commands": [ + "mgcb-editor-mac" + ] + } + } +} \ No newline at end of file diff --git a/Activity1.cs b/Activity1.cs new file mode 100644 index 0000000..94ed58e --- /dev/null +++ b/Activity1.cs @@ -0,0 +1,34 @@ +using Android.App; +using Android.Content.PM; +using Android.OS; +using Android.Views; +using Microsoft.Xna.Framework; + +namespace sb2013 +{ + [Activity( + Label = "@string/app_name", + MainLauncher = true, + Icon = "@drawable/icon", + AlwaysRetainTaskState = true, + LaunchMode = LaunchMode.SingleInstance, + ScreenOrientation = ScreenOrientation.FullUser, + ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.Keyboard | ConfigChanges.KeyboardHidden | ConfigChanges.ScreenSize + )] + public class Activity1 : AndroidGameActivity + { + private Game1 _game; + private View _view; + + protected override void OnCreate(Bundle bundle) + { + base.OnCreate(bundle); + + _game = new Game1(); + _view = _game.Services.GetService(typeof(View)) as View; + + SetContentView(_view); + _game.Run(); + } + } +} diff --git a/AndroidManifest.xml b/AndroidManifest.xml new file mode 100644 index 0000000..101a033 --- /dev/null +++ b/AndroidManifest.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/Content/Content.mgcb b/Content/Content.mgcb new file mode 100644 index 0000000..895694b --- /dev/null +++ b/Content/Content.mgcb @@ -0,0 +1,15 @@ + +#----------------------------- Global Properties ----------------------------# + +/outputDir:bin/$(Platform) +/intermediateDir:obj/$(Platform) +/platform:Android +/config: +/profile:Reach +/compress:False + +#-------------------------------- References --------------------------------# + + +#---------------------------------- Content ---------------------------------# + diff --git a/Game1.cs b/Game1.cs new file mode 100644 index 0000000..9076d33 --- /dev/null +++ b/Game1.cs @@ -0,0 +1,52 @@ +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Microsoft.Xna.Framework.Input; + +namespace sb2013 +{ + 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/Resources/Drawable/Icon.png b/Resources/Drawable/Icon.png new file mode 100644 index 0000000..25fe044 Binary files /dev/null and b/Resources/Drawable/Icon.png differ diff --git a/Resources/Values/Strings.xml b/Resources/Values/Strings.xml new file mode 100644 index 0000000..873f28e --- /dev/null +++ b/Resources/Values/Strings.xml @@ -0,0 +1,4 @@ + + + sb2013 + diff --git a/sb2013.csproj b/sb2013.csproj new file mode 100644 index 0000000..f59bbed --- /dev/null +++ b/sb2013.csproj @@ -0,0 +1,21 @@ + + + net8.0-android + 23 + Exe + com.companyname.sb2013 + 1 + 1.0 + + + apk + + + + + + + + + + \ No newline at end of file diff --git a/sb2013.sln b/sb2013.sln new file mode 100644 index 0000000..dcb1f3b --- /dev/null +++ b/sb2013.sln @@ -0,0 +1,24 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.12.35514.174 d17.12 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "sb2013", "sb2013.csproj", "{5CBF659B-BB98-4868-B40E-C318955E3BC6}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {5CBF659B-BB98-4868-B40E-C318955E3BC6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5CBF659B-BB98-4868-B40E-C318955E3BC6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5CBF659B-BB98-4868-B40E-C318955E3BC6}.Debug|Any CPU.Deploy.0 = Debug|Any CPU + {5CBF659B-BB98-4868-B40E-C318955E3BC6}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5CBF659B-BB98-4868-B40E-C318955E3BC6}.Release|Any CPU.Build.0 = Release|Any CPU + {5CBF659B-BB98-4868-B40E-C318955E3BC6}.Release|Any CPU.Deploy.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal