/
vasandi
/
Codingplus
Обзор
Документация
Войти
/
vasandi
/
Codingplus
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Shoot/load_res.py
52 строки
2 KB
Андрей Васильченко
add pygame examples
02 окт 2024, 13:22
02 окт 2024, 13:22
dc94fdd
Код
Авторство
О чём код?
import pygame as pg def loadZombie1(): zombie1 = [ pg.image.load("res/zombie1/zombie01.png").convert_alpha(), pg.image.load("res/zombie1/zombie012.png").convert_alpha(), pg.image.load("res/zombie1/zombie013.png").convert_alpha(), pg.image.load("res/zombie1/zombie014.png").convert_alpha(), pg.image.load("res/zombie1/zombie015.png").convert_alpha(), pg.image.load("res/zombie1/zombie016.png").convert_alpha(), pg.image.load("res/zombie1/zombie017.png").convert_alpha(), pg.image.load("res/zombie1/zombie018.png").convert_alpha(), pg.image.load("res/zombie1/zombie019.png").convert_alpha(), pg.image.load("res/zombie1/zombie0110.png").convert_alpha(), pg.image.load("res/zombie1/zombie0111.png").convert_alpha(), pg.image.load("res/zombie1/zombie0112.png").convert_alpha(), pg.image.load("res/zombie1/zombie0113.png").convert_alpha(), pg.image.load("res/zombie1/zombie0114.png").convert_alpha(), pg.image.load("res/zombie1/zombie0115.png").convert_alpha(), pg.image.load("res/zombie1/zombie0116.png").convert_alpha(), pg.image.load("res/zombie1/zombie0117.png").convert_alpha(), pg.image.load("res/zombie1/zombie0118.png").convert_alpha(), pg.image.load("res/zombie1/zombie0119.png").convert_alpha(), pg.image.load("res/zombie1/zombie0120.png").convert_alpha() ] return zombie1 def loadZombie2(): zombie2 = [] for i in range(22): zombie2.append( pg.image.load(f"res/zombie2/e1bd4d6354a24357f68c0c3728386935RXhh22zxDUDhnLYk-{i}.png").convert_alpha()) return zombie2 def loadZombie3(): zombie3 = [] for i in range(17): image = pg.image.load(f"res/zombie3/99d58d81dd45435e91a104108a7078e8Z6hxUUWb1WQdQYML-{i}.png").convert_alpha() image = pg.transform.scale(image, (image.get_width() // 2, image.get_height() // 2)) zombie3.append(image) return zombie3 def loadExplosion(): explosion = [] for i in range(12): explosion.append( pg.image.load(f"res/explosion/explosion_01_strip13-{i:02d}-00.png").convert_alpha()) return explosion