以下是部分代码预览:
"""电影帧还原播放.py,本程序只是不断地播放图像,图像来源于电影视频输出的帧图。""" import pygame from pygame.locals import * import time import os gametitle="周星驰审死官电影节简介_作者:李兴球" pygame.init() screenWidth,screenHeight=468,360 screen = pygame.display.set_mode((screenWidth,screenHeight)) pygame.display.set_caption(gametitle) class Video(): pass v1 = Video(os.getcwd() + os.sep + "周星驰出场") clock = pygame.time.Clock() running = True while running: for event in pygame.event.get(): if event.type==QUIT:running = False v1.play() pygame.display.update() clock.tick(20) pygame.quit()
下载完整源代码与素材,请
需要浏览更多吗?
成为会员后,登陆才能继续浏览!联系微信scratch8即可办理会员。
(会员专属:能浏览所有文章,下载所有带链接的Python资源。)