programextensions/blender/demos/td-models.xtl

Blender, 3: game pieces. The twelve tower defense pieces X_eTaL-games asked for -- arrow, cannon and frost towers at three levels, runner, brute and shield creeps -- described in X_eTaL (Td.xtl: boxes, cylinders, cones, spheres, rings, crystals and turned profiles, the parts that move in groups, the clips keyed from each part's rest), written as one bpy script, and exported by Blender as one glTF file a piece with its named clips: idle, fire, walk, hit. Each file's clips are read back from it. Page: blender/td/ the pieces in 3D (published) Run: just demo blender td-models (about half a minute)

source · imports bl: extensions/blender/lib/Blender.xtl; bp: extensions/blender/lib/Bpy.xtl; td: extensions/blender/demos/Td.xtl

_ : Int

function · line 16
_ ← "work/td/run.py" ᵇˡw̲rite! ᵇᵖlauncher

_ : Int

function · line 17
_ ← "work/td/models.py" ᵇˡw̲rite! ᵇᵖhead c̲at ᵗᵈall c̲at ᵇᵖreport

r : Char

value · line 19
r ← "work/td/run.py" ᵇˡr̲un! "work/td/models.py work/td/out"
Used in: lines

lines : Box Char

value · line 21
lines ← (n̲ot r = f̲irst "\n") p̲artition r