Exemplo n.º 1
0
        private async Task loadCharacters(IGame game)
        {
            InventoryItems items = new InventoryItems();
            await items.LoadAsync(game.Factory);

            Beman beman     = new Beman();
            var   character = await beman.LoadAsync(game);

            var room = await Rooms.BrokenCurbStreet;
            await character.ChangeRoomAsync(room, 100, 110);

            Characters.Init(game);
        }
Exemplo n.º 2
0
        private async Task loadCharacters(IGame game)
        {
            ICharacter       character = game.State.Player;
            KeyboardMovement movement  = new KeyboardMovement(character, game.Input,
                                                              game.State.FocusedUI, KeyboardMovementMode.Pressing);

            movement.AddArrows();
            movement.AddWASD();

            InventoryItems items = new InventoryItems();
            await items.LoadAsync(game.Factory);

            Beman beman = new Beman();

            character = await beman.LoadAsync(game);

            var room = await Rooms.BrokenCurbStreet;
            await character.ChangeRoomAsync(room, 100, 110);

            Characters.Init(game);
        }
Exemplo n.º 3
0
		private static async Task loadCharacters(IGame game)
		{
            ICharacter character = game.State.Player;
			KeyboardMovement movement = new KeyboardMovement (character, game.Input, KeyboardMovementMode.Pressing);
			movement.AddArrows();
			movement.AddWASD();
			character.ChangeRoom (Rooms.SplashScreen);

            InventoryItems items = new InventoryItems();
            await items.LoadAsync(game.Factory);

            Beman beman = new Beman ();
			character = await beman.LoadAsync(game);
			var room = await Rooms.BrokenCurbStreet;
			character.ChangeRoom(room, 100, 110);

			Characters.Init (game);
		}