动态背景_蓝天绿地太阳云朵户外场景动画演示

"""动态背景_蓝天绿地太阳云朵户外场景动画演示"""

__author__ = "李兴球"
__date__ = "2019/6/3"
__website__ = "www.lixingqiu.com"

import time
import pygame
from random import *
from pygame.locals import *

class Sun:
    def __init__(self,images,position):
        self.images = images
        self.index = 0             # 造型索引
        self.amounts = len(images) # 造型数量
        self.interval = 0.1        # 切换间隔
        self.start_time = time.time()
        self.set_costume(self.index)
        self.rect = self.image.get_rect()
        self.rect.center = position        
        
    def update(self):
        

You must log in to read the rest of this article. Please log in or register as a user.