Skip to content

Add game portal — 187 games, dark night UI, search & categories#7

Open
aqplemine wants to merge 3 commits intomainfrom
claude/game-repository-setup-70kSx
Open

Add game portal — 187 games, dark night UI, search & categories#7
aqplemine wants to merge 3 commits intomainfrom
claude/game-repository-setup-70kSx

Conversation

@aqplemine
Copy link
Copy Markdown
Member

  • index.html: single-page portal with sidebar + game grid + iframe overlay
  • style.css: dark night theme (#08080f bg, purple accent, category colors)
  • games.js: 187 games from 5 sources (UGS-Assets, Neruvy, genizy, mathtut0r1ng)
  • app.js: category filtering, live search, iframe game loading, fullscreen

Sources: bubbls/UGS-Assets, Neruvy/neruvy-games, Neruvy/web-port,
genizy/web-port, mathtut0r1ng/mathtut0r1ng.github.io

https://claude.ai/code/session_013KzmqWZCgkEN2uqGkURs4M

- index.html: single-page portal with sidebar + game grid + iframe overlay
- style.css: dark night theme (#08080f bg, purple accent, category colors)
- games.js: 187 games from 5 sources (UGS-Assets, Neruvy, genizy, mathtut0r1ng)
- app.js: category filtering, live search, iframe game loading, fullscreen

Sources: bubbls/UGS-Assets, Neruvy/neruvy-games, Neruvy/web-port,
         genizy/web-port, mathtut0r1ng/mathtut0r1ng.github.io

https://claude.ai/code/session_013KzmqWZCgkEN2uqGkURs4M
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 24, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
omg-central Ready Ready Preview, Comment Apr 24, 2026 11:23pm

Game loading:
- Fetch raw HTML from raw.githubusercontent.com instead of embedding GitHub Pages URLs
- Inject <base href="..."> so relative game assets (Unity, Construct 2, etc.) still
  resolve from the original GitHub Pages host
- Fallback to direct src= embed if fetch fails

New UI:
- Fixed top header with logo, centered search bar, live game count
- Horizontal scrollable category pills (replaces old sidebar)
- Larger game cards (190px min) with play-button hover overlay
- Loading spinner + text while game fetches
- ESC to close, F for fullscreen

games.js: each entry now has { raw, url } — raw for fetching HTML,
  url as the <base href> for asset resolution

https://claude.ai/code/session_013KzmqWZCgkEN2uqGkURs4M
Root cause: srcdoc set the iframe origin to the Vercel domain, so when
Unity/Construct2 games fetched their own asset files from bubbls.github.io
it was cross-origin and CORS blocked them. Direct iframe.src lets each game
run in its own origin so all same-origin asset fetches work correctly.

Changes:
- app.js: remove fetch/srcdoc approach, use frame.src = g.url directly
- games.js: remove raw URL field, back to plain GitHub Pages URLs
- index.html: fix allow attr (remove invalid pointer-lock feature),
  remove redundant allowfullscreen attr, add emoji favicon (fixes 404)

Remaining expected warnings (not fixable from our side):
- "can escape sandboxing" — removed sandbox entirely for max game compat
- Service worker errors from within games — internal to game code
- Ad blocker blocking ima3.js — browser extension, not our code

https://claude.ai/code/session_013KzmqWZCgkEN2uqGkURs4M
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