summaryrefslogtreecommitdiff
path: root/Penguloon/Activity1.cs
diff options
context:
space:
mode:
authoraldrikboy <aldrikboy@gmail.com>2017-12-09 11:55:50 +0100
committeraldrikboy <aldrikboy@gmail.com>2017-12-09 11:55:50 +0100
commitc4c0f3c887d627b6432551e96009c7aeecd4cdd8 (patch)
tree208a7102e9b9a82f66d3d2f89c441fb8f24ab11a /Penguloon/Activity1.cs
parent1cd8dec6c45c6868e17f3383b558dd30fd7ce05d (diff)
Add project files.
Diffstat (limited to 'Penguloon/Activity1.cs')
-rw-r--r--Penguloon/Activity1.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/Penguloon/Activity1.cs b/Penguloon/Activity1.cs
new file mode 100644
index 0000000..ac9aa1e
--- /dev/null
+++ b/Penguloon/Activity1.cs
@@ -0,0 +1,27 @@
+using Android.App;
+using Android.Content.PM;
+using Android.OS;
+using Android.Views;
+
+namespace Penguloon
+{
+ [Activity(Label = "Penguloon"
+ , MainLauncher = true
+ , Icon = "@drawable/icon"
+ , Theme = "@style/Theme.Splash"
+ , AlwaysRetainTaskState = true
+ , LaunchMode = Android.Content.PM.LaunchMode.SingleInstance
+ , ScreenOrientation = ScreenOrientation.FullUser
+ , ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.Keyboard | ConfigChanges.KeyboardHidden | ConfigChanges.ScreenSize)]
+ public class Activity1 : Microsoft.Xna.Framework.AndroidGameActivity
+ {
+ protected override void OnCreate(Bundle bundle)
+ {
+ base.OnCreate(bundle);
+ var g = new Game1();
+ SetContentView((View)g.Services.GetService(typeof(View)));
+ g.Run();
+ }
+ }
+}
+