From 40d01342d00c57dce5069e53a455db048a2967d5 Mon Sep 17 00:00:00 2001 From: The Fuzzy Riolu Date: Mon, 12 Mar 2018 11:52:38 -0400 Subject: Initial commit --- WatercolorGames.Pong/Activity1.cs | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 WatercolorGames.Pong/Activity1.cs (limited to 'WatercolorGames.Pong/Activity1.cs') 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(); + } + } +} + -- cgit v1.2.3