aboutsummaryrefslogtreecommitdiff
path: root/WatercolorGames.Pong/Activity1.cs
diff options
context:
space:
mode:
authorThe Fuzzy Riolu <[email protected]>2018-03-12 11:52:38 -0400
committerThe Fuzzy Riolu <[email protected]>2018-03-12 12:02:33 -0400
commit40d01342d00c57dce5069e53a455db048a2967d5 (patch)
tree99e64bed61317a564253e456e2aa45fba3c0c6ec /WatercolorGames.Pong/Activity1.cs
parentcdb0da6c34228a4034dbe179dc268aaded532619 (diff)
downloadshiftos-pong-master.tar.gz
shiftos-pong-master.tar.bz2
shiftos-pong-master.zip
Initial commitHEADmaster
Diffstat (limited to 'WatercolorGames.Pong/Activity1.cs')
-rw-r--r--WatercolorGames.Pong/Activity1.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/WatercolorGames.Pong/Activity1.cs b/WatercolorGames.Pong/Activity1.cs
new file mode 100644
index 0000000..6cfe249
--- /dev/null
+++ b/WatercolorGames.Pong/Activity1.cs
@@ -0,0 +1,27 @@
+using Android.App;
+using Android.Content.PM;
+using Android.OS;
+using Android.Views;
+
+namespace WatercolorGames.Pong
+{
+ [Activity(Label = "WatercolorGames.Pong"
+ , 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(this);
+ SetContentView((View)g.Services.GetService(typeof(View)));
+ g.Run();
+ }
+ }
+}
+