Activity1.cs 497 B

123456789101112131415161718
  1. using Android.App;
  2. using Android.OS;
  3. namespace Platformer
  4. {
  5. [Activity(Label = "Platformer", MainLauncher = true, Icon = "@drawable/icon")]
  6. public class Activity1 : Microsoft.Xna.Framework.AndroidGameActivity
  7. {
  8. protected override void OnCreate(Bundle bundle)
  9. {
  10. base.OnCreate(bundle);
  11. PlatformerGame.Activity = this;
  12. PlatformerGame g = new PlatformerGame();
  13. SetContentView(g.Window);
  14. g.Run();
  15. }
  16. }
  17. }