def _set_render(self, str_picture, int_block_width, int_block_height): """ """ str_picture = '{0}{1}' . format(RESOURCES_PATH_IMG_MAPS, str_picture) self._render, self._render_rect = core._loader( str_picture, int_block_width, int_block_height, False )
def _set_mapper(self, str_picture, int_block_width, int_block_height): """ Configure mapper. Mapper is a basic picture with only colored blocks to define position of this and use to creating rendered maps string picture define the picture to load. int width define the width of an unit block. int height define the height of an unit block. """ str_picture = '{0}{1}' . format(RESOURCES_PATH_IMG_MAPS, str_picture) self._mapper = core._loader( str_picture, int_block_width, int_block_height )
def _set_pattern_solid_block(self, str_picture, int_block_width, int_block_height): """ """ str_picture = '{0}{1}' . format(RESOURCES_PATH_IMG_MAPS, str_picture) self._pattern_solid_block = core._loader( str_picture, int_block_width, int_block_height ) tmp_pattern = [] for row in self._pattern_solid_block: for column in row: tmp_pattern.append(column) self._pattern_solid_block = tmp_pattern