Пример #1
0
        /// <summary>
        /// Dovoluje inicializovat v�ci pot�ebn� p�ed samotn�m spu�t�n�m.
        /// </summary>
        protected override void Initialize()
        {
            // Va�i inicializa�n� logiku p�idejte zde

            menuSession = new MenuSession(this);

            worldSession = new LevelBase(this);

            float aspectRatio = graphics.GraphicsDevice.Viewport.Width /
                (float)graphics.GraphicsDevice.Viewport.Height;

            // inicializace kamery a urceni pocatecni pozice
            camera = new Camera(aspectRatio);
            camera.CameraPosition = new Vector3(0, 100, 100);

            models = ModelList.GetInstance();
            models.Camera = camera;

            base.Initialize();
        }
        public override void InitializeScreenComponents()
        {
            gameSession = new LevelBase(ScreenManager.Game);
            float aspectRatio = ScreenManager.GraphicsDevice.Viewport.Width / (float)ScreenManager.GraphicsDevice.Viewport.Height;

            // inicializace kamery a urceni pocatecni pozice
            camera = new Camera(aspectRatio);

            models = ModelList.GetInstance();
            models.Camera = camera;
        }