pygame问题
本帖最后由 flyps 于 2024-7-29 13:57 编辑我在制作游戏时调用了下文的say函数,程序却卡住了,这是怎么回事import pygame
from pygame.locals import *
pygame.init()
Acolour = (255, 255, 255)
def changeC(colour, acolour = Acolour):
acolour = colour
def say(story, surface, size, afont, k, colour = Acolour):
Astory = list(story)
Bstory = ""
for i in Astory:
Bstory = "".join()
pygame.draw.rect(surface, colour, (size/2, size/2, size, size/4), 10)
surface.blit(afont.render(Bstory, True, colour), (size/2, size/2))
while not k:
surface.blit(afont.render(Bstory, True, colour), (size/2, size/2))
pygame.time.delay(10)
页:
[1]