Esempio n. 1
0
        public GameplayController() : base(SceneMgr.GetScene("default")["default"])
        {
            GameMgr.MaxGameSpeed = 60;
            GameMgr.MinGameSpeed = 60;

            Text.CurrentFont = Resources.Fonts.Arial;

            ScreenController.Init();

            Audio = new SoundController(Layer);

            MapController.Init();
            MapController.CurrentMap.Build();


            CollisionDetector.Init();
            Scene.Priority = -10000;

            GUILayer       = Scene.CreateLayer("gui");
            GUILayer.IsGUI = true;


            music = new LayeredSound(SoundController.MusicGroup);
            music.AddLayer("top", Resources.Sounds.MainTopLayer);
            music.AddLayer("base", Resources.Sounds.MainBaseLayer);
            music.Play();
            SoundController.UpdatingSounds.Add(music);
        }
Esempio n. 2
0
 private void Start()
 {
     GameController.Init();
     ScreenController.Init();
 }