protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); _game = new XmasHell.XmasHell(this); View vw = (View)_game.Services.GetService(typeof(View)); SetContentView(vw); _game.Run(); vw.SetOnSystemUiVisibilityChangeListener(this); HideSystemUi(); }
protected override void OnCreate(Bundle bundle) { Log("onCreate()"); base.OnCreate(bundle); InitializeServices(); HideSystemUi(); if (GameHelper != null && GameHelper.SignedOut) { GameHelper.SignIn(); } _game = new XmasHell.XmasHell(this); View vw = (View)_game.Services.GetService(typeof(View)); SetContentView(vw); _game.Run(); vw.SetOnSystemUiVisibilityChangeListener(this); }
public DebugView(World _world, XmasHell.XmasHell game, float _ratio) { _debugView = new DebugViewXna(_world); _debugView.AppendFlags(FarseerPhysics.DebugViewFlags.DebugPanel); _debugView.DefaultShapeColor = Color.Red; _debugView.SleepingShapeColor = Color.DarkRed; _debugView.LoadContent(game.GraphicsDevice, game.Content); _debugView.AppendFlags(FarseerPhysics.DebugViewFlags.Shape); //_debugView.AppendFlags(FarseerPhysics.DebugViewFlags.PerformanceGraph); //_debugView.AppendFlags(FarseerPhysics.DebugViewFlags.AABB); //_debugView.AppendFlags(FarseerPhysics.DebugViewFlags.CenterOfMass); //_debugView.AppendFlags(FarseerPhysics.DebugViewFlags.ContactNormals); //_debugView.AppendFlags(FarseerPhysics.DebugViewFlags.ContactPoints); //_debugView.AppendFlags(FarseerPhysics.DebugViewFlags.Controllers); //_debugView.AppendFlags(FarseerPhysics.DebugViewFlags.Joint); //_debugView.AppendFlags(FarseerPhysics.DebugViewFlags.PolygonPoints); // //_debugView.AppendFlags(FarseerPhysics.DebugViewFlags.PolygonPoints); this.game = game; this._ratio = _ratio; Enabled = true; }
static void Main() { using (var game = new XmasHell.XmasHell()) game.Run(); }
internal static void RunGame() { game = new XmasHell.XmasHell(); game.Run(); }