from pygame.sprite import Sprite import pygame.image import os import lib.constants as constants class PlayerImg(Sprite): @staticmethod def loadFrames(type): frames={} dirs=["up","down","left","right"] num_frames=3 for direction in dirs: frame_array=[0,0,0] i=0 while i