"""本pygame程序实现的是一个用图像模拟的3D效果地图""" import pygame from pygame.locals import * width,height = 480,360 screen = pygame.display.set_mode((width,height)) pygame.display.set_caption("可移动3D背景 www.lixingqiu.com") backgrounds = [pygame.image.load(f"frames/i-{index+1}.png") for index in range(36)] amounts = len(backgrounds) clock = pygame.time.Clock() running = True while running: for event in pygame.event.get(): if event.type == QUIT:running = False clock.tick(30) pygame.quit()
下载完整源代码与素材,请
需要浏览更多吗?
成为会员后,登陆才能继续浏览!联系微信scratch8即可办理会员。
(会员专属:能浏览所有文章,下载所有带链接的Python资源。)