Skip to content

Python Parser & API for the LevelZ File Format

License

Notifications You must be signed in to change notification settings

LevelZ-File/py-bindings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

187 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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)

About

Python Parser & API for the LevelZ File Format

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

Contributors 4

  •  
  •  
  •  
  •