protected override void Initialize()
        {
            base.Initialize();

            Screen.SetSize((int)(1920 * 0.75), (int)(1080 * 0.75), false);

            for (int i = 0; i < 4; ++i)
            {
                Inputs.Add(new XBoxController(i));
            }

            for (int i = 0; i < 8; ++i)
            {
                Inputs.Add(new JoyConController(i));
            }

            for (int i = 0; i < 16; ++i)
            {
                Inputs.Add(new WebController(i));
            }

            Inputs.Add(new KeyboardController());

            MainScene = new MainScene(this);
            Scenes.Add("Main", MainScene);
            Scenes.Show("Main");



#if !DEBUG
            Screen.ToggleFullscreen();
#endif
        }
 public CollisionHandler(MainScene scene)
 {
     this.scene = scene;
 }
Esempio n. 3
0
 public LeviathanBehavior(MainScene scene)
 {
     this.Scene = scene;
 }