Over the last 5 days, I shipped a free daily anime trivia browser RPG called DoyaLore (5 questions/day, ~2 minutes, no login, EN & JP).
My self-imposed constraint was simple:
Zero external JS libraries. Zero audio MP3 files. $0/month hosting (Cloudflare Pages + KV).
Yet I still wanted it to feel like a console JRPG when you nail an answer on Hint #1.
Here are the 4 pure-browser techniques I shipped in v6.0–v6.2 (and one nasty Chrome preserve-3d bug that almost broke everything).
1. Persona-Style Diagonal Eye Cut-Ins — 0KB Extra Assets (clip-path)
Whenever a player aces a question on Hint #1 or hits a combo streak, a diagonal eye-band cut-in slashes across the screen for ~1 second.
Instead of generating separate wide banner assets for all 10 heroines, I reused the exact same vertical portrait image with CSS clip-path: polygon(...) and object-position: 50% 12% to frame only the eyes, overlaid with CSS repeating-linear-gradient speed lines:
.cutin-eye-band { clip-path: polygon(0 18%, 100% 0%, 100% 82%, 0 100%); transform: translateX(-110%) skewX(-12deg); animation: cutinSlash 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards; } .cutin-eye-band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; } Result: 0KB extra network payload, instant 60fps on mobile Safari and Chrome.
2. 3D Card-Flip Summon & Holographic Glare (rotateY + Pointer Tilt)
When a player earns a heroine card, an embossed card back flies in from deep translateZ(-420px) space, pauses for anticipation, and flips 180 degrees (rotateY(180deg)) on tap (or after 1.1s) with a white flash + 24 DOM spark particles.
Once revealed, moving a mouse or thumb across the card calculates normalized (-1..1) offsets and updates CSS custom properties (--rx, --ry, --gx, --gy) for a trading-card holographic sheen.
The Nasty Chrome Bug I Hit (preserve-3d inside overflow-y: auto)
While testing on Windows Chrome, placing a transform-style: preserve-3d card inside a scrollable modal (overflow-y: auto) caused hit-testing and cursor: zoom-in to freeze! Moving the 3D summon stage into a dedicated position: fixed; z-index: 9999 portal outside the scrollable container completely eliminated the glitch.
3. 0KB Seamless Adaptive-Tension BGM (Pure Web Audio API)
I wanted music that ramps up tension as you progress from Question 1 (EASY) to Question 5 (EXTREME), without forcing mobile visitors to download multi-megabyte MP3 loops or suffer awkward loop seams.
So I built a tiny procedural step-sequencer using native AudioContext:
- Q1 (EASY): 110 BPM chill neon-lounge bassline + soft arpeggio
- Q3 (HARD): 125 BPM driving pulse
- Q5 (EXTREME): 140 BPM boss-battle synth lead
- SFX Bus Balance: All UI sound effects route through a master
sfxBus(gain = 0.38) so chimes never clip over the BGM. - Auto-Pause: Hooks
visibilitychangeso switching browser tabs immediately suspends theAudioContext, and defaults to OFF until toggled (music button in the header).
4. Real Analytics After Day 5
Using a tiny Cloudflare Pages Function + KV counter (zero third-party trackers):
- ~28% of players open the in-game collection/shop
- Moving the quiz card above the fold (0mm scroll to press the first answer!) visibly lifted completion rates
- Today on Day 5, I got my very first real sale (automated key delivery + instant browser unlock end-to-end)!
Try It Free (No Login, ~2 Minutes)
If you want to test the CSS 3D card flip, diagonal cut-ins, and 0KB adaptive Web Audio BGM (sound & music toggles in the top bar):
Play Free in Browser (EN / JP): https://doyalore.pages.dev/?lang=en&utm_source=devto&utm_campaign=devlog_v62
I'd love technical feedback on the Web Audio timing, mobile Safari 3D transform smoothness, or today's anime trivia difficulty!