programgames/asteroids/asteroids.xtl
Asteroids, scripted (seed 1), with the rules of Rocks.xtl on lib/Ecs: entities spawned and despawned every few ticks (shots fired and spent, rocks broken in two), the free slots found by a mask.
ᵘf̲ire : (Num a, Num b, Num c) => (Float, Int, a, Int, Float, b, Float) -> c -> (Float, Int, a, Int, Float, b, Float)
ᵘf̲ire ← { s n → n = 0 ? s◆ ((s ʳᵒk̲ey " ") ʳᵒt̲ick 0.05) ᵘf̲ire n − 1 }
fired : (Float, Int, Int, Int, Float, Int, Float)
fired ← start ᵘf̲ire 20
Used in: games/asteroids/asteroids.xtl:22, later