SOURCE/PACKAGES/SETTINGS/gamehandler.py
def load_image(self, type, name):
        """" Load image and return image object """
        fullname = os.path.join(settings.PATH, flags.F_ASSET, type, name)
        try:
            image = pg.image.load(fullname)
            if image.get_alpha() is None:
                image = image.convert()
            else:
                image = image.convert_alpha()
        except pg.error as message:
            print('Cannot load image:', fullname)
            raise SystemExit(message)
        return image, image.get_rect()
 Load image and return image object 
Load image and return image object
Load image and return image object
def load_image(self, type, name):
        fullname = os.path.join(settings.PATH, flags.F_ASSET, type, name)
        try:
            image = pg.image.load(fullname)
            if image.get_alpha() is None:
                image = image.convert()
            else:
                image = image.convert_alpha()
        except pg.error as message:
            print('Cannot load image:', fullname)
            raise SystemExit(message)
        return image, image.get_rect()
def load_image ( self , type , name ) : fullname = os . path . join ( settings . PATH , flags . F_ASSET , type , name ) try : image = pg . image . load ( fullname ) if image . get_alpha ( ) is None : image = image . convert ( ) else : image = image . convert_alpha ( ) except pg . error as message : print ( 'Cannot load image:' , fullname ) raise SystemExit ( message ) return image , image . get_rect ( )
Load image and return image object
Load image and return image object
"""" Load image and return image object """
self
type
name