Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 625 Bytes

README.md

File metadata and controls

44 lines (30 loc) · 625 Bytes

levelz-py

Python bindings & API for the LevelZ File Format

GitHub Release

Overview

Provides Python Parsing/Support for the LevelZ File Format.

Download

pip install levelz

Usage

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)