目录
一.准备图片
二.编写源码
import math
import os
import random
import redis
import sys
import time
import numpy as np
import pygame as py
# 预加载分数图
def pre_load_image(background):
imageList = {}
imagePath = './素材/分数/'
image_filenames = [i for i in os.listdir(imagePath)]
width = math.floor(background.width * (1 - internalWidth) / 4)
for name in image_filena