コード例 #1
0
ファイル: Program.cs プロジェクト: brianjlacy/MonoAGS
        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);
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: jdiperla/MonoAGS
        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);
        }