Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

arena.mjs: add debug logging to diagnose arrow graphics issue

Added console logs to check:
1. Whether button buffers are being created in boot()
2. Whether paste() function is available when rendering buttons
3. Which buffers exist and are being used

This will help diagnose why arrow graphics aren't displaying.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>

+11 -4
+11 -4
system/public/aesthetic.computer/disks/arena.mjs
··· 529 529 plot(6, 10); 530 530 plot(6, 18); 531 531 }); 532 + 533 + // Debug: log created buffers 534 + console.log("🎨 Button buffers created:", Object.keys(buttonBuffers)); 532 535 } 533 536 534 537 ··· 1455 1458 1456 1459 const buffer = buttonBuffers[bufferName]; 1457 1460 if (buffer) { 1458 - // Render pixel graphics (centered in button) 1459 - const centerX = b.box.x + (b.box.w - buffer.width) / 2; 1460 - const centerY = b.box.y + (b.box.h - buffer.height) / 2; 1461 - paste(buffer, centerX, centerY); 1461 + if (!paste) { 1462 + console.log(`⚠️ paste not available for button ${name}`); 1463 + } else { 1464 + // Render pixel graphics (centered in button) 1465 + const centerX = b.box.x + (b.box.w - buffer.width) / 2; 1466 + const centerY = b.box.y + (b.box.h - buffer.height) / 2; 1467 + paste(buffer, centerX, centerY); 1468 + } 1462 1469 } 1463 1470 }); 1464 1471 }