下载地址:https://github.com/vvvbeauty/fish
# -*- coding:utf-8 -*-
import pygame_sdl2 as pygameimport time,math,random
def main(): #1. 创建窗口
screen =pygame.display.set_mode((640,960),0,32) #screen.fill([255,255,255]) #2. 创建一个背景图片
img1=[[0,0,78,64],[0,64,78,64],[0,128,78,64],[0,192,78,64]]
img2=[[0,256,78,64],[0,320,78,64],[0,384,78,64],[0,448,78,64]]
img2x=[[10,1],[20