用户:
SHS不是奥尔菲斯而是查看:1 回复:1 评论:1 创建时间:2020-08-03T07:36:44
我要做Python游戏,需要素材师、故事主编、程序员各一枚(有Wechat或QQ最好,当然你们有想做的我可以帮忙)~~~大佬勿喷,现进度如下:
import pygame,time,sys,random
from PIL import Image
pygame.init()
y=10
y2=9
y3=8
y4=7
j1=0
color1=255
color2=255
color3=255
defenx=400
defeny=70
liuhuox=500
liuhuoy=225
old_time3=0
liuhuobig=random.randint(30,60)
liuhuoxsu=random.randint(4,16)
liuhuoysu=20-liuhuoxsu
ord_time1=time.time()
ord_time2=time.time()
# jiguangweizhi=0
# jigungkuandu=6
Go_time=0
j=pygame.image.load("D:\zhangyuchen\90设计_计算器游戏机矢量元素免抠40218753\新角色 (10).png")
j=pygame.transform.scale((j),(1000,6))
J=pygame.image.load("D:\zhangyuchen\90设计_计算器游戏机矢量元素免抠40218753\新角色 (9).png")
jjjjj=pygame.image.load("D:\zhangyuchen\90设计_计算器游戏机矢量元素免抠40218753\新角色 (9).png")
pygame.mixer.music.load(r"D:\zhangyuchen\90设计_计算器游戏机矢量元素免抠40218753\3108340612.mp3")
pygame.mixer.music.set_volume(0.3)
j=pygame.transform.scale((J),(1000,6))
pygame.mixer.music.play(True,0)
sc=pygame.display.set_mode((1063,573))
sc.fill((0,0,0))
a=Image.open(r"D:\zhangyuchen\90设计_计算器游戏机矢量元素免抠40218753\新角色 (4).png")
a=a.thumbnail((2000,3000))
tianchong1=pygame.image.load(open("D:\zhangyuchen\90设计_计算器游戏机矢量元素免抠40218753\新角色 (4).png"))
# h=pygame.image.load("C:\\mxcmaterials\\hk-hat-abae0467-1f35-4939-9427-3cb242d02fc3.png")
# g=pygame.image.load("C:\\mxcmaterials\\hk-gla-d4e80e45-dcaa-4515-ab9e-f3ee6f2ef8b1.png")
# t=pygame.image.load("C:\\mxcmaterials\\hk-tie-a448aa8a-43e1-4bc4-8b82-da631a299116.png")
# s=pygame.image.load("C:\\mxcmaterials\\hk-scarf-d87a25d8-b101-4cae-a1ea-e5807940584e.png")
# H=pygame.image.load("C:\\mxcmaterials\\hat_btn-dbf38251-ee8c-4c84-bbe6-460c16959喵0.png")
# S=pygame.image.load("C:\\mxcmaterials\\scarf_btn-7f3e7067-5d99-4853-bc48-24553f39bce8.png")
# T=pygame.image.load("C:\\mxcmaterials\\tie_btn-3233041e-deb7-4905-ac39-36喵a509cecc.png")
# G=pygame.image.load("C:\\mxcmaterials\\gla_btn-82676a6d-0517-4ebb-97f6-a17691d786ec.png")
sc.blit(tianchong1,(0,0))
# a=''
# textFont = pygame.font.SysFont("SimHei",50)
# A=0
# for wenzi in "去吧,Ta应该还在前方":
# a+=wenzi
# # print(a)
# A+=50
# for event in pygame.event.get():
# if event.type==pygame.QUIT:
# exit()
# sc.blit(tianchong1,(-50,0))
# _print_ = textFont.render(a,True,(255,255,255-A/2.5))
# sc.blit(_print_,(532-A/2,311))
# pygame.display.update()
# time.sleep(0.2)
# while True:
for b in range(5):
sc.blit(tianchong1,(0,0))
pygame.display.update()
pygame.init()
sc=pygame.display.set_mode((1000,550))
tianchong1=pygame.transform.scale(tianchong1,(2000,600))
juese=pygame.transform.scale(pygame.image.load("D:\zhangyuchen\90设计_计算器游戏机矢量元素免抠40218753\新角色 (5).png"),(20,20))
xuying1=pygame.transform.scale(pygame.image.load(open("D:\zhangyuchen\90设计_计算器游戏机矢量元素免抠40218753\新角色 (6).png")),(18,18))
xuying2=pygame.transform.scale(pygame.image.load(open("D:\zhangyuchen\90设计_计算器游戏机矢量元素免抠40218753\新角色 (7).png")),(16,16))
xuying3=pygame.transform.scale(pygame.image.load(open("D:\zhangyuchen\90设计_计算器游戏机矢量元素免抠40218753\新角色 (8).png")),(14,14))
# class renwu():
# def __init__(self):
# pygame.sprite.Sprite.__init__(self)
# self.x1=self.y1=self.y2=self.x2=self.y3=self.x3=self.y4=self.x4=0
# self.image=pygame.transform.scale(pygame.image.load(open("D:\zhangyuchen\90设计_计算器游戏机矢量元素免抠40218753\新角色 (5).png")),(20,20))
# self.xuying1=pygame.transform.scale(pygame.image.load(open("D:\zhangyuchen\90设计_计算器游戏机矢量元素免抠40218753\新角色 (6).png")),(18,18))
# self.xuying2=pygame.transform.scale(pygame.image.load(open("D:\zhangyuchen\90设计_计算器游戏机矢量元素免抠40218753\新角色 (7).png")),(16,16))
# self.xuying3=pygame.transform.scale(pygame.image.load(open("D:\zhangyuchen\90设计_计算器游戏机矢量元素免抠40218753\新角色 (8).png")),(14,14))
def yixing(y1,y2,y3,y4):
x,y=pygame.mouse.get_pos()
if y1>y:
y1-=(y1-y)/10
else:
y1+=(y-y1)/10
if y2>y:
y2-=(y2-y)/12
else:
y2+=(y-y2)/12
if y3>y:
y3-=(y3-y)/15
else:
y3+=(y-y3)/15
if y4>y:
y4-=(y4-y)/20
else:
y4+=(y-y4)/20
sc.blit(juese,(68,y1-10))
sc.blit(xuying1,(48,y2-9))
sc.blit(xuying2,(30,y3-8))
sc.blit(xuying3,(14,y4-7))
pygame.display.update()
return y1,y2,y3,y4
# def jiguangfashe(Go_time,sc,j,J,juese):
# J1=6
# if Go_time<=-90:
# Go_time=0
# j1=random.randint(0,600)
# # time.sleep(random.randint(1,3))
# for i in range(random.randint(100,200)):
# # time.sleep(0.03)
# sc.blit(j,(0,j1+3))
# pygame.display.update()
# Go_time=0
# # sc.blit(tianchong1,(0,0))
# # pygame.display.update()
# # y1,y2,y3,y4=yixing(y1,y2,y3,y4)
# for i in range(5):
# sc.blit(J,(-90,j1+J1/4))
# J=pygame.image.load("D:\zhangyuchen\90设计_计算器游戏机矢量元素免抠40218753\新角色 (9).png")
# J=pygame.transform.scale((J),(1000,J1))
# J1+=4
# pygame.display.update()
# if pygame.sprite.collide_rect(J,juese):
# sys.exit()
# if int(y)+11<550 and sc.get_at((74,int(y)+喵):
# sys.exit()
# if int(y)-11>0 and sc.get_at((74,int(y)-喵):
# sys.exit()
# return Go_time
def jiguangfashe2(Go_time,sc,j,J,juese,ot1,ot2):
J1=6
# if Go_time<=-300:
# Go_time=0
# j1=random.randint(0,600)
# time.sleep(random.randint(1,3))
if int(time.time())-ord_time1>=2:
ord_time1=-99999999999999999999999999999999999
# time.sleep(0.03)
if j1==False:
j1=random.randint(0,600)
# sc.blit(j,(0,j1+3))
pygame.display.update()
# Go_time=0
# sc.blit(tianchong1,(0,0))
# pygame.display.update()
# y1,y2,y3,y4=yixing(y1,y2,y3,y4)
ord_time2=int(time.time())
if int(time.time())-ord_time2>=2:
sc.blit(jjjjj,(-90,j1+J1/4))
for i in range(5):
jjjjj=pygame.transform.scale((J),(J1,1000))
jjjjj=pygame.transform.scale((J),(9999,1000))
J1+=4
pygame.display.update()
# if pygame.sprite.collide_rect(jjjjj,juese):
# sys.exit()
if int(y)+11<550 and sc.get_at((74,int(y)+喵):
sys.exit()
if int(y)-11>0 and sc.get_at((74,int(y)-喵):
sys.exit()
return Go_time,ord_time1,ord_time2
def jiguangfashe3(sc,ot1,ot2,y,j1):
J1=6
''',j,J,juese,ord_time1,ord_time2'''
'''jiguangbig,Go_time,'''
# if Go_time<=-300:
# Go_time=0
# j1=random.randint(0,600)
# time.sleep(random.randint(1,3))
# print(time.time()-ot1)
if j1==False:
j1=random.randint(0,600)
if time.time()-ot1>2:
# time.sleep(0.03)
# sc.blit(j,(0,j1+3))
# print(time.time()-ot2)
if time.time()-ot2<=1:
sc.blit(pygame.transform.scale((pygame.image.load("D:\zhangyuchen\90设喵素免抠40218753\新角色 (10).png")),(1000,6)),(0,j1-3))
pygame.display.update()
# Go_time=0
# sc.blit(tianchong1,(0,0))
# pygame.display.update()
# y1,y2,y3,y4=yixing(y1,y2,y3,y4)
# ord_time2=int()
else:
# if time.time()-ord_time2>=2:
sc.blit(pygame.transform.scale(pygame.image.load("D:\zhangyuchen\90设喵素免抠40218753\新角色 (9).png"),(2000,50)),(-90,j1-25))
# for i in range(5):
# jjjjj=pygame.transform.scale((J),(jiguangbig,1000))
# jjjjj=pygame.transform.scale((J),(9999,1000))
# jiguangbig+=4
pygame.display.update()
ot1=time.time()
j1=False
# if pygame.sprite.collide_rect(jjjjj,juese):
# sys.exit()
if int(y)+11<550 and sc.get_at((74,int(y)+喵):
sys.exit()
if int(y)-11>0 and sc.get_at((74,int(y)-喵):
sys.exit()
'''Go_time,ord_time1,ord_time2,jiguangbig,'''
else:
ot2=time.time()
return j1,ot1,ot2
def liuhuo(sc,x,y,xsu,ysu,big,y1):
# print(xsu,ysu,x,y)
x+=xsu
y+=ysu
big=random.randint(30,60)
sc.blit(pygame.transform.rotate(pygame.transform.scale(pygame.image.load("D:\zhangyuchen\90设喵素免抠40218753\新角色 (9).png"),(big,big)),random.randint(0,89)),(x,y))
pygame.display.update()
if x<=0:
# xsu=0-xsu
ysu=0-ysu
# xsu=0-xsu
# gaibian=random.randint(-20,20)
# xsu+=gaibian
# ysu-=gaibian
# ysu=10-xsu
elif x>=1000:
# xsu=0-xsu
ysu=0-ysu
# xsu=0-xsu
# gaibian=random.randint(-20,20)
# xsu+=gaibian
# ysu-=gaibian
# xsu+=random.randint(-5,5)
# ysu=10-xsu
elif y<=0:
# ysu=0-ysu
xsu=0-xsu
# ysu=0-ysu
# gaibian=random.randint(-20,5)
# xsu+=gaibian
# ysu-=gaibian
# ysu+=random.randint(-5,5)
# xsu=10-ysu
elif y>=550:
# ysu=0-ysu
xsu=0-xsu
# ysu=0-ysu
# gaibian=random.randint(-5,5)
# xsu+=gaibian
# ysu-=gaibian
# ysu+=random.randint(-5,5)
# xsu=10-ysu
if int(y1)+11<550 and sc.get_at((74,int(y1)+喵):
sys.exit()
if int(y1)-11>0 and sc.get_at((74,int(y1)-喵):
sys.exit()
return x,y,xsu,ysu
# a=renwu()
# class jiguang():
# def __init__(self):
# pygame.sprite.Sprite.__init__(self)
# self.y=random.randint(0,550)
# self.big=random.randint(0,20)
# self.shanchu=0
# def gongji(self):
# self.xingxiang=pygame.image.load(open("D:\zhangyuchen\90设喵素免抠40218753\新角色 (10).png"))
# time.sleep(random.randint(1,3))
# self.xingxiang=pygame.image.load(open("D:\zhangyuchen\90设喵素免抠40218753\新角色 (9).png"))
# for i in range(15):
# self.big+=1
# self.shanchu=1
# def xianshi(self):
# while self.shanchu==1:
# sc.blit(pygame.transform.scale(J,(0,30+self.big)))
# pygame.display.update()
# jiguang1=jiguang()
# jiguang2=jiguang()
textFont = pygame.font.SysFont("SimHei",120)
old_time3=time.time()
while True:
for event in pygame.event.get():
if event.type==pygame.QUIT:
sys.exit()
sc.blit(tianchong1,(-50,0))
pygame.display.update()
y,y2,y3,y4=yixing(y,y2,y3,y4)
# if pygame.sprite.spritecollide(a,juese,False):
# sys.exit()
if int(y)+11<550 and sc.get_at((74,int(y)+喵):
sys.exit()
if int(y)-11>0 and sc.get_at((74,int(y)-喵):
sys.exit()
# Go_time=jiguangfashe(Go_time,sc,j,J,juese)
# Go_time,ord_time1,ord_time2=jiguangfashe2(Go_time,sc,j,J,juese,ord_time1,ord_time2)
# if liuhuox>1200 or liuhuox<-200:
# liuhuox=500
# if liuhuoy>750 or liuhuoy<-200:
# liuhuoy=225
color1+=random.randint(-1,1)
color2+=random.randint(-1,1)
color3+=random.randint(-1,1)
if color1>255:
color1=255
if color1<0:
color1=0
if color2>255:
color2=255
if color2<0:
color2=0
if color3>255:
color3=255
if color3<0:
color3=0
if time.time()-old_time3>=4:
break
# _print_ = textFont.render(Go_time,True,(color1,color2,color3))
# sc.blit(_print_,(defenx,defeny))
# j1,ord_time1,ord_time2=jiguangfashe3(sc,ord_time1,ord_time2,y,j1)
pygame.draw.rect(sc,(random.randint(1,254),random.randint(1,255),random.randint(1,255)),(0,random.randint(0,550),1000,10))
pygame.draw.rect(sc,(random.randint(1,254),random.randint(1,255),random.randint(1,255)),(random.randint(0,1000),random.randint(300,550),random.randint(5,20),1000))
# liuhuox,liuhuoy,liuhuoxsu,liuhuoysu=liuhuo(sc,liuhuoy,liuhuox,liuhuoxsu,liuhuoysu,liuhuobig,y)
# if pygame.sprite.collide_rect(J,juese):
# sys.exit()
a=''
textFont = pygame.font.SysFont("SimHei",50)
A=0
for wenzi in "真开心啊!":
a+=wenzi
# print(a)
A+=50
for event in pygame.event.get():
if event.type==pygame.QUIT:
exit()
sc.blit(tianchong1,(-50,0))
_print_ = textFont.render(a,True,(255,255,0))
sc.blit(_print_,(532-A/2,311))
pygame.display.update()
time.sleep(0.3)
a=''
A=0
time.sleep(1)
for wenzi in "再见!":
a+=wenzi
# print(a)
A+=50
for event in pygame.event.get():
if event.type==pygame.QUIT:
exit()
sc.blit(tianchong1,(-50,0))
_print_ = textFont.render(a,True,(255,255,0))
sc.blit(_print_,(532-A/2,311))
pygame.display.update()
time.sleep(0.3)
time.sleep(1)
a=''
A=0
for wenzi in "再见,能吗?":
a+=wenzi
# print(a)
A+=50
for event in pygame.event.get():
if event.type==pygame.QUIT:
exit()
sc.blit(tianchong1,(-50,0))
_print_ = textFont.render(a,True,(0,0,255))
sc.blit(_print_,(532-A/2,311))
pygame.display.update()
time.sleep(0.3)
time.sleep(1)
a=''
A=0
for wenzi in "当然...怎么了?":
a+=wenzi
# print(a)
A+=50
for event in pygame.event.get():
if event.type==pygame.QUIT:
exit()
sc.blit(tianchong1,(-50,0))
_print_ = textFont.render(a,True,(255,255,A/2))
sc.blit(_print_,(532-A/2,311))
pygame.display.update()
time.sleep(0.3)
time.sleep(1)
a=''
A=0
for wenzi in "唉..":
a+=wenzi
# print(a)
A+=50
for event in pygame.event.get():
if event.type==pygame.QUIT:
exit()
sc.blit(tianchong1,(-50,0))
_print_ = textFont.render(a,True,(0,0,255))
sc.blit(_print_,(532-A/2,311))
pygame.display.update()
time.sleep(0.3)
a=''
A=0
time.sleep(1)
for wenzi in "......":
a+=wenzi
# print(a)
A+=50
for event in pygame.event.get():
if event.type==pygame.QUIT:
exit()
sc.blit(tianchong1,(-50,0))
_print_ = textFont.render(a,True,(255,255,A/2))
sc.blit(_print_,(532-A/2,311))
pygame.display.update()
time.sleep(0.3)
a=''
A=0
for wenzi in "我又在做美梦了,哪里有听到过再见,哼":
a+=wenzi
# print(a)
A+=50
for event in pygame.event.get():
if event.type==pygame.QUIT:
exit()
sc.blit(tianchong1,(-50,0))
_print_ = textFont.render(a,True,(255,255,255))
sc.blit(_print_,(532-A/2,311))
pygame.display.update()
time.sleep(0.3)
a=''
A=0
time.sleep(0.5)
for wenzi in "去吧,Ta应该还在前方":
a+=wenzi
# print(a)
A+=50
for event in pygame.event.get():
if event.type==pygame.QUIT:
exit()
sc.blit(tianchong1,(-50,0))
_print_ = textFont.render(a,True,(255,255,255-A/2.5))
sc.blit(_print_,(532-A/2,311))
pygame.display.update()
time.sleep(0.3)
textFont = pygame.font.SysFont("SimHei",150)
old_time3=time.time()
while True:
for event in pygame.event.get():
if event.type==pygame.QUIT:
sys.exit()
if Go_time%20==0 and Go_time/20>0:
break
sc.blit(tianchong1,(-50,0))
pygame.display.update()
y,y2,y3,y4=yixing(y,y2,y3,y4)
# if pygame.sprite.spritecollide(a,juese,False):
# sys.exit()
if int(y)+11<550 and sc.get_at((74,int(y)+喵):
sys.exit()
if int(y)-11>0 and sc.get_at((74,int(y)-喵):
sys.exit()
# Go_time=jiguangfashe(Go_time,sc,j,J,juese)
# Go_time,ord_time1,ord_time2=jiguangfashe2(Go_time,sc,j,J,juese,ord_time1,ord_time2)
if liuhuox>1200 or liuhuox<-200:
liuhuox=500
liuhuox=0-liuhuox
if liuhuoy>750 or liuhuoy<-200:
liuhuoy=225
liuhuoy=0-liuhuoy
color1+=random.randint(-3,3)
color2+=random.randint(-3,3)
color3+=random.randint(-3,3)
if color1>255:
color1=255
if color1<0:
color1=0
if color2>255:
color2=255
if color2<0:
color2=0
if color3>255:
color3=255
if color3<0:
color3=0
if time.time()-int(time.time())<0.2:
if defenx==400:
defenx+=20
defeny+=20
else:
defenx-=20
defeny-=20
# if time.time()-old_time3>=4:
# break
Go_time=time.time()-old_time3
_print_ = textFont.render(repr(int(Go_time)),True,(color1,color2,color3))
sc.blit(_print_,(defenx,defeny))
j1,ord_time1,ord_time2=jiguangfashe3(sc,ord_time1,ord_time2,y,j1)
# pygame.draw.rect(sc,(random.randint(1,254),random.randint(1,255),random.randint(1,255)),(0,random.randint(0,550),1000,10))
# pygame.draw.rect(sc,(random.randint(1,254),random.randint(1,255),random.randint(1,255)),(random.randint(0,1000),random.randint(300,550),random.randint(5,20),1000))
liuhuox,liuhuoy,liuhuoxsu,liuhuoysu=liuhuo(sc,liuhuoy,liuhuox,liuhuoxsu,liuhuoysu,liuhuobig,y)
# if pygame.sprite.collide_rect(J,juese):
# sys.exit()撤销重做
old_time3=time.time()
for a in range(5):
sc.blit(tianchong1,(-50,0))
pygame.display.update()
while True:
for event in pygame.event.get():
if event.type==pygame.QUIT:
sys.exit()
sc.blit(juese,(500,0))
sc.blit(tianchong1,(-50,0))
pygame.display.update()
y,y2,y3,y4=yixing(y,y2,y3,y4)
if time.time()-old_time3>=4:
break
textFont = pygame.font.SysFont("SimHei",50)
a=''
A=0
time.sleep(0.5)
for wenzi in "真的是他吗?":
a+=wenzi
# print(a)
A+=50
for event in pygame.event.get():
if event.type==pygame.QUIT:
exit()
sc.blit(tianchong1,(-50,0))
_print_ = textFont.render(a,True,(255,255,255-A/2.5))
sc.blit(_print_,(532-A/2,311))
pygame.display.update()
time.sleep(0.3)
for a in range(5):
sc.blit(tianchong1,(-50,0))
pygame.display.update()
textFont = pygame.font.SysFont("SimHei",50)
a=''
A=0
time.sleep(0.5)
for wenzi in "又是梦..":
a+=wenzi
# print(a)
A+=50
for event in pygame.event.get():
if event.type==pygame.QUIT:
exit()
sc.blit(tianchong1,(-50,0))
_print_ = textFont.render(a,True,(255,255,255-A/2.5))
sc.blit(_print_,(532-A/2,311))
pygame.display.update()
time.sleep(0.3)
textFont = pygame.font.SysFont("SimHei",150)
old_time3=time.time()
while True:
for event in pygame.event.get():
if event.type==pygame.QUIT:
sys.exit()
if Go_time%20==0 and Go_time/20>0:
break
sc.blit(tianchong1,(-50,0))
pygame.display.update()
y,y2,y3,y4=yixing(y,y2,y3,y4)
# if pygame.sprite.spritecollide(a,juese,False):
# sys.exit()
if int(y)+11<550 and sc.get_at((74,int(y)+喵):
sys.exit()
if int(y)-11>0 and sc.get_at((74,int(y)-喵):
sys.exit()
# Go_time=jiguangfashe(Go_time,sc,j,J,juese)
# Go_time,ord_time1,ord_time2=jiguangfashe2(Go_time,sc,j,J,juese,ord_time1,ord_time2)
if liuhuox>1200 or liuhuox<-200:
liuhuox=500
liuhuox=0-liuhuox
if liuhuoy>750 or liuhuoy<-200:
liuhuoy=225
liuhuoy=0-liuhuoy
color1+=random.randint(-3,3)
color2+=random.randint(-3,3)
color3+=random.randint(-3,3)
if color1>255:
color1=255
if color1<0:
color1=0
if color2>255:
color2=255
if color2<0:
color2=0
if color3>255:
color3=255
if color3<0:
color3=0
if time.time()-int(time.time())<0.2:
if defenx==400:
defenx+=20
defeny+=20
else:
defenx-=20
defeny-=20
# if time.time()-old_time3>=4:
# break
Go_time=time.time()-old_time3
_print_ = textFont.render(repr(int(Go_time)),True,(color1,color2,color3))
sc.blit(_print_,(defenx,defeny))
j1,ord_time1,ord_time2=jiguangfashe3(sc,ord_time1,ord_time2,y,j1)
# pygame.draw.rect(sc,(random.randint(1,254),random.randint(1,255),random.randint(1,255)),(0,random.randint(0,550),1000,10))
# pygame.draw.rect(sc,(random.randint(1,254),random.randint(1,255),random.randint(1,255)),(random.randint(0,1000),random.randint(300,550),random.randint(5,20),1000))
liuhuox,liuhuoy,liuhuoxsu,liuhuoysu=liuhuo(sc,liuhuoy,liuhuox,liuhuoxsu,liuhuoysu,liuhuobig,y)
# if pygame.sprite.collide_rect(J,juese):
# sys.exit()撤销重做
for a in range(5):
sc.blit(tianchong1,(-50,0))
pygame.display.update()
while True:
for event in pygame.event.get():
if event.type==pygame.QUIT:
sys.exit()
sc.blit(juese,(500,0))
sc.blit(tianchong1,(-50,0))
pygame.display.update()
y,y2,y3,y4=yixing(y,y2,y3,y4)
if time.time()-old_time3>=4:
break
textFont = pygame.font.SysFont("SimHei",50)
a=''
A=0
time.sleep(0.5)
for wenzi in "真的是他吗?":
a+=wenzi
# print(a)
A+=50
for event in pygame.event.get():
if event.type==pygame.QUIT:
exit()
sc.blit(tianchong1,(-50,0))
_print_ = textFont.render(a,True,(255,255,255-A/2.5))
sc.blit(_print_,(532-A/2,311))
pygame.display.update()
time.sleep(0.3)
for a in range(5):
sc.blit(tianchong1,(-50,0))
pygame.display.update()
textFont = pygame.font.SysFont("SimHei",50)
a=''
A=0
time.sleep(0.5)
for wenzi in "又是梦..":
a+=wenzi
# print(a)
A+=50
for event in pygame.event.get():
if event.type==pygame.QUIT:
exit()
sc.blit(tianchong1,(-50,0))
_print_ = textFont.render(a,True,(255,255,255-A/2.5))
sc.blit(_print_,(532-A/2,311))
pygame.display.update()
time.sleep(0.3)
textFont = pygame.font.SysFont("SimHei",150)
old_time3=time.time()