programgames/raycaster/raycaster.xtl
The raycaster, scripted (seed 1), with the rules of Rays.xtl: one ray per column of the picture, every ray stepped through the grid at once until all of them have hit a wall.
ᵘp̲ress : (Any a, Num b) => (Float, Float, Float, a, b) -> Char -> (Float, Float, Float, a, b)
ᵘp̲ress ← { s k → s ʳᶜk̲ey k }
Used in: ᵘk̲eys
ᵘk̲eys : (Any a, Num b) => (Float, Float, Float, a, b) -> Box Char -> (Float, Float, Float, a, b)
ᵘk̲eys ← { s ks → 0 = t̲ally ks ? s◆ (s ᵘp̲ress d̲isclose f̲irst ks) ᵘk̲eys 1 d̲rop ks }
turned : (Float, Float, Float, Float, Int)
turned ← (s ᵘk̲eys "UP" "UP" "UP") ᵘk̲eys 12 r̲eshape e̲nclose "RIGHT"
_ : Unit
_ ← "2 = f_loor f_irst 60 s_elect rc:s_ees rc:n_ew 0" a̲ssert< "straight ahead at the start is the blue wall"