孤岛求生1.2.0

这是我用Python做了14天的游戏

希望能火

不求点赞和收藏 

from time import *
from os import *
from sys import *
from random import *
# 张海悦原创!

# 全部代码
def game():
    def ff (text):
        stdout.flush()
        for df in text:
            stdout.write(df)
            stdout.flush()
            sleep(0.099)
            
    def fs (text):
        stdout.flush()
        for df in text:
            stdout.write(df)
            stdout.flush()
            sleep(0.9)
            
    def fff (text):
        stdout.flush()
        for df in text:
            stdout.write(df)
            stdout.flush()
            sleep(0.09)
    
    def ffff (text):
        stdout.flush()
        for df in text:
            stdout.write(df)
            stdout.flush()
            sleep(0.009)
    
    def t(a):
        for x in range(len(a)):
            if a[x]=="1":
                print("\033[41m ",end="")
            elif a[x]=="2":
                print("\033[42m ",end="")
            elif a[x]=="3":
                print("\033[43m ",end="")
            elif a[x]=="4":
                print("\033[44m ",end="")
            elif a[x]=="5":
                print("\033[45m ",end="")
            elif a[x]=="6":
                print("\033[46m ",end="")
            elif a[x]=="7":
                print("\033[47m ",end="")
            elif a[x]=="8":
                print("\033[48m ",end="")
            elif a[x]=="9":
                print("\033[49m ",end="")
            elif a[x]=="0":
                print("\033[40m ",end="")
            elif a[x]=="q":
                print("\033[31m",end="")
            elif a[x]=="w":
                print("\033[32m",end="")
            elif a[x]=="e":
                print("\033[33m",end="")
            elif a[x]=="r":
                print("\033[34m",end="")
            elif a[x]=="t":
                print("\033[35m",end="")
            elif a[x]=="y":
                print("\033[36m",end="") 
            elif a[x]=="u":
                print("\033[92m",end="") 
            else:
                print(a[x],end="")
        print("\033[0m")
        
    def wood_progress_bar():
        for i in range(1, 31):
            print("\r", end="")
            print("Felling progress: {}%: ".format(i + 70), "▋" * (i // 2), end="")
            stdout.flush()
            sleep(0.05)
    def iron_progress_bar():
        for i in range(
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值