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.
This commit is contained in:
parent
d9e0e31d1b
commit
df8b74bab3
1 changed files with 13 additions and 7 deletions
|
|
@ -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" }
|
||||
]
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue