mirror of
https://github.com/watercolor-games/shiftos-pong.git
synced 2025-01-22 17:52:15 +00:00
28 lines
903 B
C#
28 lines
903 B
C#
|
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();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|