CHRZ-Development / SuperMarioBros.3-pygame

An copy of SuperMarioBros.3 wrote in Python
GNU General Public License v3.0
0 stars 0 forks source link

Find how to load correctly images on `loader.py` #13

Open naulan-chrzaszcz opened 1 year ago

naulan-chrzaszcz commented 1 year ago

I created image_data.py

@dataclass
class ImageData(object):
    type_of_block: TypeOfBlock
    type_of_image: TypeOfImage

    x: int
    y: int
    name: str
    data: Surface
naulan-chrzaszcz commented 1 year ago

i search how to define correctly a block

naulan-chrzaszcz commented 1 year ago

here

type_of_block: TypeOfBlock
type_of_image: TypeOfImage