| 1234567891011121314151617181920212223242526 |
- using Android.App;
- using Android.Content.PM;
- using Android.OS;
- using Microsoft.Xna.Framework;
- namespace RobotRampage.Android
- {
- [Activity(
- Label = "RobotRampage",
- MainLauncher = true,
- Icon = "@mipmap/icon",
- Theme = "@style/MainTheme",
- ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize,
- ScreenOrientation = ScreenOrientation.Landscape
- )]
- public class MainActivity : AndroidGameActivity
- {
- protected override void OnCreate(Bundle savedInstanceState)
- {
- base.OnCreate(savedInstanceState);
- var game = new RobotRampageGame();
- SetContentView((game.Services.GetService(typeof(View)) as View));
- game.Run();
- }
- }
- }
|