Python bindings & API for the LevelZ File Format
Provides Python Parsing/Support for the LevelZ File Format.
pip install levelz
from levelz import Coordiante2D
coord = Coordiante2D(1, 2)
print(coord)
from levelz import parse_lines, Level2D
lines = [
"@type 2",
"@spawn default",
"---",
"grass: [0, 0]*[0, 1]"
]
level: Level2D = parse_lines(lines)
from levelz import parse_file
level = parse_file("level.lvlz")
print(level)