Skip to main content
Bamboweb

Browser Farming Game with a Server-Side Economy

An online game with a fully server-side economy and offline earnings, hardened against cheating.

Browser Farming Game with a Server-Side Economy

About this project

The challenge

In browser games, running the economy in the browser lets players trivially tamper with their values. On top of that, the game had to keep earning for the player after they closed the tab.

The solution

I moved all economic logic to the server; the browser is purely a view layer, and every transaction is validated server-side before it is recorded. For offline earnings, instead of running a permanent timer, the server computes the time elapsed since the last visit and grants that period's income in one capped batch.

  • A fully server-side economy that resists tampering
  • Offline earnings calculated from elapsed time
  • Balanced upgrade costs and growth curves
  • An optimized database for fast transaction writes

The result

Despite running in the browser, the game has a secure and dependable economy, and returning players get a fair, smooth experience.

Project images