Files
deepgrain-foundry/tools/scenes/t105-chain.js
T

14 lines
454 B
JavaScript

// Load test/fixtures/t105-transport.js first. The measured chain, running at heavy feed.
for(let y=64;y<248;y++)for(let x=24;x<288;x++) {
const i=y*W+x;
part[i]=0;mach[i]=0;bgm[i]=0;
setCell(i,y>=240?STONE:EMPTY,20,y>=240?F_NAT:0);
}
for(let x=24;x<288;x++){surfY[x]=240;dirtY[x]=250;}
updateRoof();
const chain=transportChainFixture();
for(let k=0;k<4800;k++){
transportFeed(chain,16);simTick();transportCollect(chain);
}
window.CAM=[152,144];