下面是部分代码预览:
"""
手动计算fps的pygame动画。
本程序粗略地计算了fps。
"""
import pygame
import time
width,height = 543,360
screen = pygame.display.set_mode((width,height))
pygame.display.set_caption("中秋快乐动画")
# 加载图形帧,转换成surface
images = [pygame.image.load(f"中秋快乐/{index:04d}.png")
for index in range(1,30)]
amounts = len(images)
index = 0
running = True
pygame.quit()
下载完整源代码与素材,请
需要浏览更多吗?
成为会员后,登陆才能继续浏览!联系微信scratch8即可办理会员。
(会员专属:能浏览所有文章,下载所有带链接的Python资源。)

