case://study-008
Web App
Project 008

Night Market Tycoon

Night Market Tycoon is a browser idle game with 20 businesses, 13 upgrades, 13 achievements, and a prestige loop at $1T total earned. ~2,000 LOC of vanilla JS on Vite, no framework, single-file production bundle, runs offline once loaded. Targets the CrazyGames / GameDistribution / Y8 portals with a 3-platform ad-SDK abstraction; source-available under PolyForm Noncommercial.

20
Businesses
13
Achievements
1e1000
Number Cap
Web App
Category
The Problem

What Wasn't Working

Most browser idle games are stuck on Flash-era UX or feel like ad farms. Portal operators (CrazyGames / GameDistribution) want one bundle they can host themselves, with their ad SDK baked in.

The Solution

How I Fixed It

Pure vanilla JS on Vite — single-file build output, sub-100KB compressed. One ad-SDK abstraction targets three portals via a single constant swap. break_eternity.js handles big-number math past 1e1000. Tamper-resistant Base64+hash saves so DevTools edits fail integrity check on load.

Stack

Technologies Used

Vite 7
Vanilla JS
break_eternity.js
Howler.js
Tailwind 4
Results

Key Outcomes

Single dist/ ships unchanged to CrazyGames / GameDistribution / Y8 / GitHub Pages
20 businesses + 13 achievements + prestige loop in ~2,000 LOC
Offline progress capped at 75% — active play always feels better than idling
PolyForm Noncommercial licensed; live playable demo via GitHub Pages

Want something like this?

Let's build it. I ship fast and I ship clean.