WordLatch:以 TypeScript、Firebase 和 AI 打造的即時多人文字謎題遊戲
I’m 11 and I Built WordLatch: A Real-Time Multiplayer Word Puzzle Game with TypeScript, Firebase & AI
11 歲的 Jesse Otobo 打造 WordLatch,一款以 Google AI Studio、TypeScript、Firebase Firestore 和 Vercel 建構的即時多人文字謎題遊戲。
Hey DEV Community! 👋
I’m Jesse Otobo, an 11-year-old full-stack developer and AI builder. After building my multiplayer math game (Jesse Math Rockstar), I wanted to tackle a completely different genre and push my web architecture skills even further.
Today, I’m excited to share my newest project: WordLatch — a fast-paced, social word puzzle game built with Google AI Studio, TypeScript, Firebase Firestore, and Vercel.
👉 Play WordLatch Live: [INSERT YOUR LIVE WORDLATCH LINK HERE]
🧩 What You Can Do on WordLatch
I didn't just want to make a basic static word game—I wanted it to feel like a complete multiplayer hangout for word lovers. Here is what’s live right now:
• Daily Classic & 60-Second Speed Modes: Solve daily puzzles across themed packs with live dictionary definitions, phonetics, and streak freezes.
• Live Multiplayer Word Duel Arena: Host or join a live lobby and race up to 25 friends head-to-head on the exact same secret word in real time.
• Custom Word Challenge Maker: Create your own 3-to-7 letter puzzles with custom clues, generate shareable invite links, and inspect your friends' solve paths and reactions in Past Games.
• Word Profile, Stats & Achievements: Build your custom scholar profile with avatar badges and frames (synced via Firebase Firestore), earn achievements, unlock board themes (Cream, Obsidian, Terminal), and climb the global and friends leaderboards.
⚙️ How I Handled Dynamic SEO in a Single-Page App
Because WordLatch has 10+ interactive views (like the Live Duel Arena, Custom Puzzle Maker, and Player Stats) inside a single-page web app, I wrote a lightweight dynamic metadata updater so search engines and social media link previews always display the exact right title, description, and canonical URL for every screen:
typescript
export function updatePageSeo(section: SeoSectionKey) {
if (typeof document === 'undefined' || typeof window === 'undefined') return;
const entry = SECTION_META[section] || SECTION_META.home;
document.title = entry.title;
const dynamicUrl = ${window.location.origin}${window.location.pathname}${window.location.search};
setMetaContent('meta[name="description"]', entry.description);
setMetaContent('meta[property="og:title"]', entry.title);
setMetaContent('meta[property="og:description"]', entry.description);
setMetaContent('meta[property="og:url"]', dynamicUrl);
setMetaContent('meta[name="twitter:title"]', entry.title);
setMetaContent('meta[name="twitter:description"]', entry.description);
setMetaContent('meta[name="twitter:url"]', dynamicUrl);
const canonical = document.querySelector('link[rel="canonical"]');
if (canonical) {
canonical.setAttribute('href', dynamicUrl);
}
}
Use code with caution.
🚀 Try It Out & Send Feedback!
I’m constantly shipping updates and new features as I grow my portfolio. Try out a 60-second speed round or challenge a friend in a Live Duel, and let me know in the comments what theme, mode, or feature I should build next!
🔗 Play here:
來源:DEV Community · dev.to