From 8c1a7f0079d50f63045bbf3ff2beb66b65e2e8b4 Mon Sep 17 00:00:00 2001 From: Thomas Richter Date: Wed, 17 Dec 2025 05:26:55 +0100 Subject: [PATCH] Add blue debug lines for wheel spokes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Draw blue lines along each spoke - Show circles at spoke endpoints - Visualize spoke positioning and angles 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- src/scenes/ShipDeckScene.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/scenes/ShipDeckScene.js b/src/scenes/ShipDeckScene.js index 7f5f06d..617278d 100644 --- a/src/scenes/ShipDeckScene.js +++ b/src/scenes/ShipDeckScene.js @@ -239,6 +239,9 @@ export default class ShipDeckScene extends Phaser.Scene { wheel.setStrokeStyle(4, 0x654321); // Wheel spokes + const spokeDebug = this.add.graphics(); + spokeDebug.lineStyle(2, 0x0000FF, 0.8); + for (let i = 0; i < 8; i++) { const angle = (i * 45) * Math.PI / 180; const x1 = 550 + Math.cos(angle) * 15; @@ -246,6 +249,12 @@ export default class ShipDeckScene extends Phaser.Scene { const x2 = 550 + Math.cos(angle) * 35; const y2 = 200 + Math.sin(angle) * 35; this.add.line(0, 0, x1, y1, x2, y2, 0x654321).setLineWidth(3); + + // Debug: Draw blue lines showing spoke endpoints + spokeDebug.lineBetween(x1, y1, x2, y2); + // Draw circles at endpoints + spokeDebug.strokeCircle(x1, y1, 3); + spokeDebug.strokeCircle(x2, y2, 3); } wheel.on('pointerdown', () => {