Project / PWA · Multi-Game
$

Dat Games 🎮

A cozy logic puzzle arcade — 15 original games in one installable PWA. Procedural infinite puzzles, daily challenges with leaderboards, and a delightful cat & mouse theme universe.

15 Games
·
PWA Ready
·
iOS/Android Ready
·
Daily Challenges
Status
🔨 In Development
Platform
Web · iOS · Android
Tech Core
React 19 · TypeScript
Backend
Supabase
Build Tool
Vite + Capacitor.js
Games Released 53%
PWA Shell 90%
Leaderboards 70%
# Flagship Games
Hand-crafted flagship experiences
4 of 15
# More Games
The full arcade library — always growing
11 more
🟫
Puzzle
Block Purr-zzle
8×8 polyomino block placement in Woodoku style. Fit the shapes, clear lines, chain combos for massive scores.
♟️
Board
Checkers
Classic 8×8 checkers with optional AI opponent. Full jump chains and king promotion.
♛
Board
Chess
Full rules chess with legal move highlighting, en passant, castling, and promotion. Local 2-player.
🔴
Strategy
Connect Four
Drop-and-connect strategy for two players. Animated win-line detection with satisfying pop effects.
🐭
Arcade
Flappy Mouse
Tap to flap a tiny mouse through cheese-block pipes. High-score leaderboard and endless runs.
💧
Puzzle
Water Sort
Sort colored liquids into matching tubes. Procedurally generated solvable puzzles across 100+ levels.
🔢
Logic
Number Match
Eliminate matching number pairs from a grid before it fills. Race against the clock in timed mode.
🔩
Logic
Nuts & Bolts
Sort and stack bolts by colour onto matching pegs. Satisfying physics-inspired animations.
🏗️
Physics
Tower Tilt
Stack falling blocks as high as possible without toppling. Simulated physics and wind speed ramp-up.
🪙
Arcade
Coin Rush
Dodge obstacles and collect coins in a fast-paced endless runner. Combo multipliers and power-ups.
🌈
Strategy
Color Flood
Flood-fill the whole board in the fewest moves possible. 14×14 procedural grids with par-move targets.
🃏
Memory
Memory Flip
Classic card-matching memory game with emoji sets ranging from 4×4 to 6×6. Timed leaderboard modes.
# Architecture
What powers the engine under the hood
⚙️
Procedural Infinite Puzzle Engine

Every puzzle is generated on-demand using a deterministic seeded PRNG (mulberry32). Daily challenges use a date-derived seed so every player worldwide receives an identical puzzle — perfect for fair leaderboard comparison. No puzzle is ever stored; they materialise from seed alone.

// Deterministic seeded PRNG
function mulberry32(seed) {
  return () => {
    seed |= 0; seed += 0x6D2B79F5;
    let t = Math.imul(seed ^ seed >>> 15, 1 | seed);
    return (t ^ t >>> 7) >>> 0;
  }
}
🗺️
3-Tier Zero-Tab Navigation

A deliberate UX decision: no game-switcher tabs during gameplay. Navigation flows through three clean tiers — the main hub, a dedicated game splash screen, and the actual gameplay view. Switching games requires going back through the hub, keeping the play experience immersive and distraction-free.

⚡
Web Worker — 120fps UI Thread

All puzzle generation and constraint-solving runs in a dedicated Web Worker, completely off the main thread. The UI remains buttery smooth at 120fps even when generating a fully validated 9×9 Sudoku or a complex Queens board. Puzzles are posted back via structured clone when ready.

// puzzle.worker.ts
self.onmessage = ({ data }) => {
  const board = solvePuzzle(data.seed, data.type);
  self.postMessage({ board, solved: true });
};
// Main thread never blocks 🎯
🎵
Procedural Web Audio Engine

Zero external MP3s. Every sound — tile placements, merge cascades, win fanfares, ambient loops — is synthesised in real-time using the Web Audio API. Oscillators, envelope shapers, and convolution reverb create a warm, cosy soundscape unique to each game. Loads instantly, works offline.

// Synth chord on merge
const osc = ctx.createOscillator();
osc.type = 'sine';
osc.frequency.setValueAtTime(freq, ctx.currentTime);
gain.gain.exponentialRampToValueAtTime(
  0.001, ctx.currentTime + 0.6
);
# Tech Stack
Every layer of the architecture
⚛️
React 19
Concurrent rendering, Server Actions-ready, latest hooks — full concurrent mode.
v19.0
🔷
TypeScript
Strict mode, full type coverage. Discriminated unions model every game state.
Strict
🎨
Tailwind v4
CSS-first config, lightning-fast builds, design tokens as CSS variables.
v4 Alpha
🌀
Framer Motion
Layout animations, shared element transitions, gesture physics for all game UIs.
Spring
🐻
Zustand
Lightweight global state for game sessions, scores, settings, and theme preference.
Global
🗄️
Supabase
Postgres-backed leaderboards, auth (OAuth + magic link), Row Level Security.
Realtime
📱
Capacitor.js
Wraps the PWA into native iOS and Android apps. Native haptics, app store ready.
iOS · Android
⚡
Vite
Sub-second HMR, optimised production builds, Web Worker bundling out of the box.
v5
Feature Spotlight
🐱 Cat / 🐭 Mouse Theme Universe

Every game exists in two parallel universes simultaneously. Swap the entire game's vocabulary with one toggle — Meow Doku's queens become fish crackers 🐠 in Cat mode or cheese wheels 🧀 in Mouse mode. Sounds, particles, iconography, and even the tutorial text shift to match.

🐱 Cat Mode  — fish crackers 🐠
🐭 Mouse Mode  — cheese 🧀
IndexedDB Persistence
theme_pref
"cat"
daily_streak
7 🔥
top_rank
TOP 13% 🏅
offline_ready
true ✓
#buildinpublic
More games dropping soon.

Dat Games ships a new game or major feature every couple of weeks. Following the build in public journey means you see the puzzle engine commits, the failed UI attempts, and the small wins — all of it.

PWA shell + offline support ✓
Supabase leaderboards + auth ✓
Procedural puzzle engine + Web Worker ✓
Capacitor iOS/Android builds — in progress
Multiplayer daily challenge rooms
5 more games (target: 20 total)
App Store & Google Play launch
Platforms
🌐 dat-games.khundat.com Live soon
📱 iOS App Store In progress
🤖 Google Play Store In progress
📦 PWA · Installable Now Ready ✓
Follow the build →
Twitter/X · LinkedIn
#buildinpublic #indiegames