Screw tubes carry bars, one whole bar at a time

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-24 00:09:33 -04:00
co-authored by Claude Opus 5.5
parent 9340bc132b
commit 9df161046d
10 changed files with 201 additions and 33 deletions
+1
View File
@@ -106,6 +106,7 @@ function tubeSpread(c, x, y, sx, sy, intake = false) {
// An empty screw cell draws in loose material from behind it or from its sides
// (not from the cell it pushes into), so a tube end sitting in a pile feeds itself.
function tubeIntake(i, p, dx, dy) {
if (occ[i]) return;
const x = i % W, y = (i / W) | 0;
const cands = [[-dx, -dy], [dy, dx], [-dy, -dx]];
const start = (tick + i) % 3;