Skip to content

Spectator mode for Shell Crackers, Backrooms 1v1 and Boostball - #247

Closed
XxSxmpley wants to merge 10 commits into
ASCoding11:mainfrom
XxSxmpley:spectator
Closed

XxSxmpley wants to merge 10 commits into
ASCoding11:mainfrom
XxSxmpley:spectator

Conversation

@XxSxmpley

Copy link
Copy Markdown
Contributor
  • Spectator mode for Shell Crackers, Backrooms 1v1 and Boostball. <game>/?watch=1#<prefix>-<room> opens a room read-only.
    • The spectator writes nothing in the game room (no player node, round, events, rating or stats), never hosts or runs the ball, and can watch a full room.
    • Boostball and Backrooms don't load stats.js or elo.js for spectators; Shell Crackers skips its rating code.
    • On screen: a Spectating banner, follow-cam cycling (Q/E, arrows or ◀ ▶), a free camera (F), the scoreboard (Tab) and Leave (Esc). Phones get matching touch controls.
  • "N watching" for players, through a new e63334287a3deaa3/watchers.js.
    • Each spectator writes only its own node at rooms/<prefix>-_watch/players/<uid> (r = the room it's watching), refreshed every 10 s and removed on leave or disconnect. An underscore can't be typed into a room code, so it can't clash with a real room.
    • New storage path under the existing rules, so no rule changes.
  • Back Room:
    • A Watch button next to Join in Playing now and on Online panel tiles, for those three games.
    • The home page and phone page pass ?watch=1 through for sc-, br- and bb- links.
    • Watching doesn't change your Online status.
  • Shared files edited: playingnow.js, social.js, m/index.html, the root index.html, plus each game's page and README.
  • Tested: each game with live players and a spectator on the real database, including the watcher count, Leave clearing it, and the Watch button from the Back Room page and the phone page. Desktop and phone sizes.
  • Not tested:
    • Boostball in portrait with a live room (Firebase rate-limited the test machine);
    • Shell Crackers capture the flag and public lobbies;
    • watching through to the next match;
    • the home-page link (it needs the Back Room code).
  • Leftover test data: two stale watcher nodes from an early test version, rooms/sc-_watch/players/MSqd… and rooms/br-_watch/players/xF53…. They're ignored after 30 s, but can be deleted in the Firebase console. Test players "Alpha" and "Sierra" briefly appeared in the live Online panel during testing.

🤖 Generated with Claude Code

XxSxmpley and others added 4 commits November 17, 2026 23:30
…tchers.js)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…atchers.js keeps the onDisconnect so a closed tab is cleared

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ats.js or elo.js for spectators

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tch=1 invite links on the home and phone pages

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@netlify

netlify Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

👷 Deploy request for ascoding11 pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit f7a8ad2

@netlify

netlify Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

👷 Deploy request for cosmic-dasik-e73c56 pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit f7a8ad2

@ASCoding11

Copy link
Copy Markdown
Owner

This isnt working for the pull request

XxSxmpley and others added 2 commits November 18, 2026 13:51
…, Your school, Lanternhold) into spectator

Conflicts resolved keeping both sides:
- README: main's netsmooth line (now with Lanternhold) plus the spectating line.
- index.html: main's school.js and lh- invite, plus the ?watch=1 pass-through.
- Shell Crackers: main's code kept as is; spectators handle the new modes. Gun Game
  shows the followed egg's and the leader's rung, and there's no streak HUD, vote,
  rules picker or rating. A spectator is never the host and never rematches. The end
  card names the winner or The Big Fry's caller, and Candler feed lines are neutral.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflicts resolved keeping both sides: README keeps main's netsmooth line plus the
spectating line; index.html keeps main's invite list (now with vq-) plus the ?watch=1
pass-through.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@XxSxmpley

Copy link
Copy Markdown
Contributor Author

Fixed: those were merge conflicts with the Shell Crackers modes, Gun Game and streak rewards that went in since. It's merged with the current main now and has no conflicts. Spectators also handle the new modes: they're never scored, never get streak rewards, and don't see the map vote, rules or rating boxes. I tested Gun Game and The Big Fry with a spectator watching.

XxSxmpley and others added 2 commits November 20, 2026 11:47
…h, Lockers, Carbon Star) into spectator

Conflicts in Shell Crackers, Backrooms 1v1, Boostball, the phone page and playingnow.js: main's code kept, the
spectator code put back on top (spectator text now goes through TX/T for Spanish; Shell Crackers' end screen keeps
the guards for a spectator with no eggs in the standings). Adds the What's new entry for spectator mode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d of 'Connecting to the room…' forever

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@XxSxmpley

Copy link
Copy Markdown
Contributor Author

Updated: merged with today's main (#275), so there are no conflicts. Spectators work with main's new bits (Locker, kit, Carbon Star, Spanish), and the Shell Crackers end card no longer crashes for a spectator when nobody is in the standings. Watching an empty Backrooms room now says nobody is playing yet instead of 'Connecting…' forever. I added a What's new entry with its Spanish.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	e63334287a3deaa3/news-es.js
#	e63334287a3deaa3/news.js
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	README.md
#	e63334287a3deaa3/news-es.js
#	e63334287a3deaa3/news.js
#	index.html
@ASCoding11

Copy link
Copy Markdown
Owner

can you fix this as well

@ASCoding11 ASCoding11 closed this Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants