PK_0.1

        //玩家元组
        let skill1=(name:"鼻屎炸弹",attack:20,per:20,pic:"抠出一团很大的鼻屎快速的飞向怪物,只听砰的一声鼻屎炸弹在怪物身上爆炸")
        let player=(name:"张浩泽",health:100,attack:5,skill:skill1)
        //怪物元组
        let mskill=(name:"死亡飞吻",attack:50,per:5,pic:"张浩泽被怪物狠狠的亲了一口")
        let monster=(name:"怪物",health:150,attack:3,monskill:mskill)
        print("###################")
        print("#   PK 大乱斗 0.1  #")
        print("###################")
        print("玩家名字:\(player.0)\n"+
        "玩家血量:\(player.1)\n"+
        "玩家攻击:\(player.2)伤害\n"+
        "玩家技能:\(player.3.0)\n"+
        "技能伤害:\(player.3.1)\n"+
        "技能几率:\(player.3.2)%\n"+
        "技能特效:\(player.3.3)\n")
        
        print("怪物名字:\(monster.0)\n"+
        "怪物血量:\(monster.1)\n"+
        "怪物攻击:\(monster.2)伤害\n"+
        "怪物技能:\(monster.3.0)\n"+
        "技能伤害:\(monster.3.1)\n"+
        "技能几率:\(monster.3.2)%\n"+
        "技能特效:\(monster.3.3)\n")


转载于:https://my.oschina.net/u/2508934/blog/526664

你可能感兴趣的:(PK_0.1)