-
Notifications
You must be signed in to change notification settings - Fork 66
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
1,853 additions
and
7 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
Templates/FlatRedBallAndroidMonoGameTemplate/FlatRedBallAndroidMonoGameTemplate.sln
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,25 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 17 | ||
VisualStudioVersion = 17.9.34607.119 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FlatRedBallAndroidMonoGameTemplate", "FlatRedBallAndroidMonoGameTemplate\FlatRedBallAndroidMonoGameTemplate.csproj", "{8FE4C15A-C3DA-4F99-A165-DBAFA07D7C29}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{8FE4C15A-C3DA-4F99-A165-DBAFA07D7C29}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{8FE4C15A-C3DA-4F99-A165-DBAFA07D7C29}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{8FE4C15A-C3DA-4F99-A165-DBAFA07D7C29}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{8FE4C15A-C3DA-4F99-A165-DBAFA07D7C29}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {8D8B22DE-4952-47C6-85CB-1076D0A7A912} | ||
EndGlobalSection | ||
EndGlobal |
36 changes: 36 additions & 0 deletions
36
...dBallAndroidMonoGameTemplate/FlatRedBallAndroidMonoGameTemplate/.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" | ||
] | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
Templates/FlatRedBallAndroidMonoGameTemplate/FlatRedBallAndroidMonoGameTemplate/Activity1.cs
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,34 @@ | ||
using Android.App; | ||
using Android.Content.PM; | ||
using Android.OS; | ||
using Android.Views; | ||
using Microsoft.Xna.Framework; | ||
|
||
namespace FlatRedBallAndroidMonoGameTemplate | ||
{ | ||
[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(); | ||
} | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
...FlatRedBallAndroidMonoGameTemplate/FlatRedBallAndroidMonoGameTemplate/AndroidManifest.xml
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,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="FlatRedBallAndroidMonoGameTemplate.FlatRedBallAndroidMonoGameTemplate" android:versionCode="1" android:versionName="1.0"> | ||
<uses-sdk android:minSdkVersion="23" android:targetSdkVersion="31" /> | ||
<uses-feature android:glEsVersion="0x00020000" android:required="true" /> | ||
<application android:label="FlatRedBallAndroidMonoGameTemplate"></application> | ||
</manifest> |
15 changes: 15 additions & 0 deletions
15
...latRedBallAndroidMonoGameTemplate/FlatRedBallAndroidMonoGameTemplate/Content/Content.mgcb
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:Android | ||
/config: | ||
/profile:Reach | ||
/compress:False | ||
|
||
#-------------------------------- References --------------------------------# | ||
|
||
|
||
#---------------------------------- Content ---------------------------------# | ||
|
Oops, something went wrong.