(cls, lines, version)
return cls(data=data, version=version)
Create an instance based on .p8 data lines.

        The base implementation reads lines of ASCII-encoded hexadecimal bytes.

        Args:
          lines: .p8 lines for the section.
          version: The PICO-8 data version from the game file header.
Create an instance based on .p8 data lines.
Create an instance based on . p8 data lines .
def from_lines(cls, lines, version):
        """Create an instance based on .p8 data lines.

        The base implementation reads lines of ASCII-encoded hexadecimal bytes.

        Args:
          lines: .p8 lines for the section.
          version: The PICO-8 data version from the game file header.
        """
        data = b''.join(bytearray.fromhex(
            str(line.rstrip(), encoding='ascii')) for line in lines)
        return cls(data=data, version=version)
def from_lines ( cls , lines , version ) : data = b'' . join ( bytearray . fromhex ( str ( line . rstrip ( ) , encoding = 'ascii' ) ) for line in lines ) return cls ( data = data , version = version )