Exemplo n.º 1
0
        protected override void LoadContent()
        {
            InputProfiles = new Dictionary <string, InputManager>();
            SpriteBatch   = new SpriteBatch(Graphics.GraphicsDevice);
            Rooms         = new RoomHandler();
            Rng           = new Random();

            Debug.Assets.InitDebugAssets();

            InputProfiles["global_keyboard"] = new InputManager();
            GlobalKeyboard = InputProfiles["global_keyboard"];

            Rooms.AddRoom(new TestRoom(new Point(1000, 1000), "test_1_fuji"));
            CurrentRoom = Rooms.GetRoom("test_1_fuji");
            CurrentRoom.LoadContent();
            CurrentRoom.InitializeRoom();

            Rooms.AddRoom(new TestRoom2(new Point(1000, 1000), "test_2_yamato"));
            Rooms.GetRoom("test_2_yamato").LoadContent();
            Rooms.GetRoom("test_2_yamato").InitializeRoom();

            CurrentRoom = Rooms.GetRoom("test_2_yamato");

            _view = Matrix.Identity;
        }