vector/ogmo: Ogmo Editor 3 levels and projects read + write as a TileMap (tile / grid / entity / decal layers, every save layout, values; HaxeFlixel TurnBasedRPG sample, MIT)
This commit is contained in:
1 parent
1f74419ccf
commit
9c02ebdee5
15 files changed
+1596
-4
No files matched your search
@@ -1,9 +1,10 @@
|
||||
# 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, LDtk's AutoLayers_2_stamps sample (tools/fixtures/ldtk.py).
|
||||
# tools/docs_check.py): the hand-written ASE of tools/fixtures/ase.py, LDtk's AutoLayers_2_stamps sample (tools/fixtures/ldtk.py),
|
||||
# HaxeFlixel's TurnBasedRPG Ogmo project and level (tests/fixtures/ogmo).
|
||||
# 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", "tools/fixtures/ldtk.py"]
|
||||
INPUTS = ["tools/docs_check.py", "tools/fixtures/ase.py", "tools/fixtures/ldtk.py", "tests/fixtures/ogmo"]
|
||||
|
||||
|
||||
def mod(ctx, name):
|
||||
@@ -17,5 +18,7 @@ def generate(ctx):
|
||||
check = mod(ctx, "../docs_check")
|
||||
files = {"hand.ase": mod(ctx, "ase").HAND.encode()}
|
||||
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"}
|
||||
for f in ("turnBasedRPG.ogmo", "room-001.json"):
|
||||
files[f] = ctx.read("tests/fixtures/ogmo/" + f)
|
||||
vars = {"aseText": "hand.ase", "ldtkText": "stamps.ldtk", "ogmoProjectText": "turnBasedRPG.ogmo", "ogmoLevelText": "room-001.json"}
|
||||
check.emit_inputs(ctx, files, vars)
|
||||
Reference in new issue
Block a user