Example #1
0
        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();
        }
Example #2
0
        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);
        }
Example #3
0
        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;
        }
Example #4
0
 static void Main()
 {
     using (var game = new XmasHell.XmasHell())
         game.Run();
 }
Example #5
0
 internal static void RunGame()
 {
     game = new XmasHell.XmasHell();
     game.Run();
 }