Merge branch 'master' of github.com:wszqkzqk/pypvz
This commit is contained in:
commit
177e426ed5
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user