comparison tools/build.py @ 22:ad1b478fc4dc

balancing work, docs and scripts
author ark
date 2026-10-20 03:08 +0200
parents 3a831478eda4
children 2f555a54c332
comparison
equal deleted inserted replaced
21:fa04481563b7 22:ad1b478fc4dc
44 TEMP = ROOT / "temp" 44 TEMP = ROOT / "temp"
45 PREVIEW = TEMP / "preview" 45 PREVIEW = TEMP / "preview"
46 # route data of the last mask step, read when the step is skipped 46 # route data of the last mask step, read when the step is skipped
47 MAPS_CACHE = TEMP / "build" / "maps.json" 47 MAPS_CACHE = TEMP / "build" / "maps.json"
48 48
49 TOOLS = sorted((ROOT / "tools").glob("*.py")) 49 # build scripts; tools/balance.py only reads the build's output
50 TOOLS = sorted(p for p in (ROOT / "tools").glob("*.py") if p.name != "balance.py")
50 HEADER = "// generated by tools/build.py from {src}, do not edit\n" 51 HEADER = "// generated by tools/build.py from {src}, do not edit\n"
51 52
52 SPRITES = (["m%d" % i for i in range(5)] + ["b%d" % i for i in range(4)] 53 SPRITES = (["m%d" % i for i in range(5)] + ["b%d" % i for i in range(4)]
53 + ["t%d" % i for i in range(4)] + ["p%d" % i for i in range(4)] 54 + ["t%d" % i for i in range(4)] + ["p%d" % i for i in range(4)]
54 + ["c%d" % i for i in range(4)] + ["hpm", "hpb"] 55 + ["c%d" % i for i in range(4)] + ["hpm", "hpb"]