Merge branch 'master' of github.com:wszqkzqk/pypvz

This commit is contained in:
星外之神 2022-08-01 11:35:15 +08:00
commit 177e426ed5

View File

@ -197,7 +197,7 @@ def load_image_frames(directory, image_name, colorkey, accept):
return frame_list return frame_list
# colorkeys 是设置图像中的某个颜色值为透明,这里用来消除白边 # colorkeys 是设置图像中的某个颜色值为透明,这里用来消除白边
def load_all_gfx(directory, colorkey=c.WHITE, accept=(".png", ".jpg", ".bmp", ".gif", "webp")): def load_all_gfx(directory, colorkey=c.WHITE, accept=(".png", ".jpg", ".bmp", ".gif", ".webp")):
graphics = {} graphics = {}
for name1 in os.listdir(directory): for name1 in os.listdir(directory):
# subfolders under the folder resources\graphics # subfolders under the folder resources\graphics