From df8b74bab33c3591705b95840331575b7fc3c172 Mon Sep 17 00:00:00 2001 From: enzotar Date: Fri, 27 Feb 2026 12:26:01 -0800 Subject: [PATCH] feat: live signal debug panel for tetris Replaced static signal key with live debug panel showing: - Piece state: piece, px, py, rotation, blocked, lockTick - Physics: score, lines, level, gravityTick, dropInterval - Grid rows: g13-g19 with full array contents Blocks confirmed persisting correctly after collision. --- examples/game-tetris.ds | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/examples/game-tetris.ds b/examples/game-tetris.ds index 4d32ffe..2eeafbd 100644 --- a/examples/game-tetris.ds +++ b/examples/game-tetris.ds @@ -293,14 +293,20 @@ view tetris_game = column [ text "Speed: {dropInterval}" { variant: "muted" } text "Ticks: {gravityTick}" { variant: "muted" } - -- Signal layer key + -- Signal debug panel (live values) text "SIGNALS" { variant: "subtitle" } - text "Data: 20 grid rows" { variant: "muted" } - text "Physics: gravity" { variant: "muted" } - text "Input: keyboard" { variant: "muted" } - text "Derived: lock, clear" { variant: "muted" } - text "Sound: 3 tones" { variant: "muted" } - text "Stream: 30+ signals" { variant: "muted" } + text "piece:{piece} px:{px} py:{py}" { variant: "muted" } + text "rot:{rotation} blk:{blocked}" { variant: "muted" } + text "lock:{lockTick} grav:{gravityTick}" { variant: "muted" } + text "score:{score} lines:{lines}" { variant: "muted" } + text "level:{level} speed:{dropInterval}" { variant: "muted" } + text "g13:{g13}" { variant: "muted" } + text "g14:{g14}" { variant: "muted" } + text "g15:{g15}" { variant: "muted" } + text "g16:{g16}" { variant: "muted" } + text "g17:{g17}" { variant: "muted" } + text "g18:{g18}" { variant: "muted" } + text "g19:{g19}" { variant: "muted" } ] ]