vector/ldtk: LDtk projects read + write as a TileMap (levels as groups, worlds, IntGrid / auto / tile / entity layers, fields, external levels through resolve)
This commit is contained in:
1 parent
524179ec67
commit
1f74419ccf
11 files changed
+1557
-6
No files matched your search
@@ -1,9 +1,9 @@
|
||||
# Docs inputs for the engine / level-editor sections of the scene, tile map, archive and data pages (tools/fixtures.py,
|
||||
# tools/docs_check.py): the hand-written ASE of tools/fixtures/ase.py.
|
||||
# tools/docs_check.py): the hand-written ASE of tools/fixtures/ase.py, LDtk's AutoLayers_2_stamps sample (tools/fixtures/ldtk.py).
|
||||
# tests/gen/docs_engines.luau { files = { [name] = bytes }, vars = { aseText = "hand.ase", ... } }
|
||||
import importlib.util, os
|
||||
|
||||
INPUTS = ["tools/docs_check.py", "tools/fixtures/ase.py"]
|
||||
INPUTS = ["tools/docs_check.py", "tools/fixtures/ase.py", "tools/fixtures/ldtk.py"]
|
||||
|
||||
|
||||
def mod(ctx, name):
|
||||
@@ -16,5 +16,6 @@ def mod(ctx, name):
|
||||
def generate(ctx):
|
||||
check = mod(ctx, "../docs_check")
|
||||
files = {"hand.ase": mod(ctx, "ase").HAND.encode()}
|
||||
vars = {"aseText": "hand.ase"}
|
||||
files["stamps.ldtk"] = open(os.path.join(mod(ctx, "ldtk").samples_dir(ctx), "AutoLayers_2_stamps.ldtk"), "rb").read()
|
||||
vars = {"aseText": "hand.ase", "ldtkText": "stamps.ldtk"}
|
||||
check.emit_inputs(ctx, files, vars)
|
||||
Reference in new issue
Block a user