Skip to content

LevelZ-File/py-bindings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)