programgames/tower-defense/tower-defense.xtl
Tower defense, scripted (seed 1), with the rules of Defense.xtl on lib/Ecs: every tower against every creep in one table, shots against creeps in another, the road found by a flood, the board in 2.5D.
arrows : (Float, Int, Int, Int, Int, Float, Int, Int, Int, Float, Int, Int, Char)
arrows ← (start ᵗᵈc̲lick 416.0 208.0) ᵗᵈc̲lick 480.0 240.0
Used in: built
built : (Float, Int, Int, Int, Int, Float, Int, Int, Int, Float, Int, Int, Char)
built ← (arrows ᵗᵈk̲ey "2") ᵗᵈc̲lick 352.0 240.0
wave : (Float, Int, Int, Int, Int, Float, Int, Int, Int, Float, Int, Int, Char)
wave ← built ᵗᵈk̲ey " "
Used in: later
ᵘg̲o : (Any a, Num b, Any c, Num d, Num e, Any f, Num g) => (Float, Int, Int, Int, Int, Float, a, b, c, Float, d, e, f) -> g -> (Float, Int, Int, Int, Int, Float, a, b, c, Float, d, e, f)
ᵘg̲o ← { s n → (n = 0) ∨ 0 < ᵗᵈs̲tatus s ? s◆ (s ᵗᵈt̲ick 0.1) ᵘg̲o n − 1 }
later : (Float, Int, Int, Int, Int, Float, Int, Int, Int, Float, Int, Int, Char)
later ← wave ᵘg̲o 200