Skip to content

Breakout

  • Mouse — move paddle
  • Click — launch ball / continue after miss / restart after game over
  • 60 reactive blocks: Each block has its own createSignal(true) controlling visibility
  • Derived state: alive() is a createMemo counting visible blocks for win detection
  • Batch updates: batch() ensures consistent state transitions (lives, phase, position)
  • Frame synchronization: Physics runs inside Solidion’s FrameManager, wrapped in Solid’s batch() for atomic updates

View on GitHub