Feat broadcast - #53
Merged
Merged
Conversation
…-window sync Document standardized pattern from Arcane VTT Map for implementing player-view features across KlassKit tools, include architecture overview with Host/Player roles and state-update/player-ready message flow, define setup constants (BROADCAST_CHANNEL/IS_PLAYER_WINDOW/bc), implement throttled broadcastState with 60fps cap and delta-optimized payloads, add asset cache tracking to avoid re-sending images, document Player-
…A button Replace "Player View" terminology with "Student View" throughout UI and code, move Open Student View button from navbar icon to prominent full-width CTA below header with green btn-chunky styling and monitor icon, update window title to "Student View | Flashcard Displayer", change window name to fc-play-student-view, update toolbar label and loading message to "Connecting to teacher...", and maintain all BroadcastChannel functionality
…or reveal-picture-game
…-picture-game modes
…picture-game modes
…or find-the-ball Add Open Student View button to control panel with green btn-chunky styling and monitor icon, implement BroadcastChannel pattern with throttled state broadcasting (60fps cap) including cup transforms/transitions/z-index/lifted states and ball visibility, sync gameState scalars (cupCount/ballCount/isShuffling/isPlaying/ballPositions/selectedCupIndex/selectedBgIndex/ballColorIndex/foundBallsCount) with rebuild detection
…or crossword, hangman, and unscramble Add Open Student View buttons to control panels with green btn-chunky styling and monitor icons, implement BroadcastChannel pattern with throttled state broadcasting (60-100fps cap) for crossword (cell values/locked states/puzzle config), hangman (word state/guessed letters/player health/scores/turn mode/round progress), and unscramble (scrambled/revealed states/mode/item progress), sync UI
…or fix-em and spell-the-word
Prevent unnecessary full puzzle broadcasts in crossword by tracking puzzle identity (rows×cols:wordCount) and only sending puzzle object when it changes, avoiding full DOM rebuilds on every keystroke in student view. Add clue-item solved state sync in student window based on locked cells since checkCurrentWordCompletion never runs there. Simplify round display logic to always count solved clues. Fix jumpToNextCell/jumpToPrevCell loop
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.