programgames/scroller/scroller.xtl
The side-scroller, scripted (seed 1), with the rules of Jump.xtl on lib/Ecs: the world as a matrix, and gravity, movement and collision as systems over every body at once.
ᵘr̲un : (Num a, Num b) => (Float, Int, Float, a) -> b -> (Float, Int, Float, a)
ᵘr̲un ← { s n → n = 0 ? s◆ ((s ʲk̲ey "RIGHT") ʲt̲ick 0.05) ᵘr̲un n − 1 }
ᵘh̲eight : (Num a, Any b) => (Float, a, Float, b) -> Float
ᵘh̲eight ← { s → 2 s̲elect ʲy̲ou s }
Used in: ᵘa̲ir
ᵘa̲ir : (Num a, Num b) => (Float, Int, Float, a) -> b -> Float
ᵘa̲ir ← { s n → n = 0 ? 0 r̲eshape 0.0◆ (ᵘh̲eight s) c̲at (s ʲt̲ick 0.05) ᵘa̲ir n − 1 }