Brick press: clay lumps into green bricks that fire into Bricks (t28)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -90,7 +90,12 @@ function drawProcBlocks() {
|
||||
const radius = sw * (saw ? 0.38 : 0.22), teeth = saw ? 10 : 6;
|
||||
ctx.save();
|
||||
ctx.lineWidth = Math.max(1, sw * 0.025);
|
||||
for (let wheel = 0; wheel < (saw ? 1 : 2); wheel++) {
|
||||
if (blockP[b] === BP_PRESS) {
|
||||
const offset = busy ? (1 - Math.cos(tick * 0.3)) * sw * 0.12 : 0;
|
||||
ctx.fillStyle = '#caa488'; ctx.fillRect(sx + sw * 0.27, sy + sw * 0.76, sw * 0.46, sw * 0.16);
|
||||
ctx.fillStyle = '#7d8996'; ctx.fillRect(sx + sw * 0.45, sy, sw * 0.1, sw * 0.4 + offset);
|
||||
ctx.fillStyle = '#b9c0c8'; ctx.fillRect(sx + sw * 0.12, sy + sw * 0.4 + offset, sw * 0.76, sw * 0.12);
|
||||
} else for (let wheel = 0; wheel < (saw ? 1 : 2); wheel++) {
|
||||
const cx = sx + sw * (saw ? 0.5 : wheel ? 0.73 : 0.27), cy = sy + sw * 0.5;
|
||||
const a = wheel ? -angle : angle;
|
||||
ctx.fillStyle = saw ? '#b9c0c8' : '#8a8f96'; ctx.strokeStyle = '#444b54';
|
||||
|
||||
+1
-1
@@ -115,7 +115,7 @@ function drawWorld() {
|
||||
}
|
||||
else if (m === GATE) { if ((x & 1) === 0 && (y & 3) !== 0) { r -= 40; g -= 24; b -= 20; } }
|
||||
else if (m === CUTST) { const lx = x & 3, ly = y & 3; if (ly === 1 || ly === 3 || lx === (ly < 2 ? 3 : 1)) { r -= 34; g -= 33; b -= 30; } else if (ly === 0 || ly === 2) { r += 10; g += 10; b += 9; } }
|
||||
else if (m === GRINDER || m === SAWB) {
|
||||
else if (m === GRINDER || m === SAWB || m === PRESSB) {
|
||||
const lx = x & 3, ly = y & 3, frame = lx === 0 || lx === 3 || ly === 0 || ly === 3;
|
||||
r = frame ? 96 : 38; g = frame ? 102 : 42; b = frame ? 112 : 50;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user