Test store. Prices are the planned list prices stored as test data, license terms are drafts, and payments go to a Stripe test-mode account. No real money moves.

HTML5 Simulation Game Source Code

Tycoon, management and farming sims with deep economies. Every game is playable in the browser and ships as a buildable TypeScript project.

8 games in this collection

Filters

How to choose HTML5 simulation game source code

The simulation games above are tycoon, management, farming and restoration games, all built on Phaser 4.2.1 and written in TypeScript. Each one has a campaign, a daily challenge, achievements and local saves, and each keeps its economy (prices, costs, upgrades and progression) in JSON data files. That last point matters most for this genre: a sim is only as good as its pacing, and you will want to tune it for your audience.

Simulation game specs

GameThemeNotable modesOrientationInitial download
Merge Café StoryMerge ingredients and restore a caféStory campaign, offline income, dailyPortrait and landscape560 KB
Mini Mart EmpireSupermarket tycoon, isometricCampaign, endless, dailyLandscape560 KB
Tiny Hotel ManagerHotel management in a cutaway viewCampaign, endless, dailyLandscape560 KB
Airport FlowPassenger flow and aircraft turnaroundCampaign, challenges, dailyLandscape630 KB
Cozy FarmFarming, crafting, animals and seasonsCampaign, endless, dailyLandscape750 KB
Robot FactoryIdle factory automation, isometricIdle with offline progress, challenges, dailyLandscape520 KB
Theme Park ManagerTheme park builder with crowd simulationCampaign, sandbox, dailyLandscape600 KB
House RenovatorClean, repair, paint and decorate homesCampaign, daily, decorationLandscape560 KB

Which sim suits your players

  • Return visits and idle play. Robot Factory keeps producing while the player is away, and Merge Café Story earns offline income. Mini Mart Empire is tagged idle-friendly. These suit portals that measure success by how often players come back.
  • Deeper management. Airport Flow has players optimize check-in, security, baggage, gates and aircraft turnaround. Theme Park Manager balances rides, food stalls and paths against guest happiness, queues and capacity, and has a sandbox. Tiny Hotel Manager covers check-ins, room cleaning and new services. All three suit desktop and tablet players with time for longer sessions.
  • Cozy and relaxing. Cozy Farm takes a small plot to a full farm by planting, harvesting, processing and selling. House Renovator is about cleaning, repairing and decorating, room by room. Merge Café Story adds a story to its merge loop.
  • A specific look. Mini Mart Empire, Robot Factory and Theme Park Manager use an isometric view; Tiny Hotel Manager uses a cutaway building.

Cozy Farm has the largest initial download in our catalog at 750 KB, which is still small for a farming game but worth knowing if your players are on slow connections.

Tuning the economy

Every game in this genre ships an economy.json in its data/ folder, next to theme files such as products, rooms, rides, crops or machines, depending on the game. Change a price or an upgrade cost, then run the game's unit tests and a build. Small changes to costs move the whole pacing curve, so change one value at a time and play through a few sessions before you ship.

Our free clicker and idle game code shows the basic loop of an incremental economy in one file, and the customization guide covers rebranding a game end to end.

Frequently asked questions

Do the tycoon games keep earning while the player is away?

Robot Factory has offline progress and Merge Café Story has offline income. The other simulation games don't list offline earnings. If that loop is what you want, the merge games in the catalog, such as Pocket Planet Merge and Dino Hatchery Merge, also include offline income.

Can I change prices, costs and progression?

Yes. The economy of each sim is JSON data, separate from the game code, so you can rebalance without writing TypeScript. Within your license you can also rename the game, reskin it and change its theme.

Do the simulation games need a server?

No. Progress is saved locally on the player's device, and each game builds to static files you can upload to any web host or CDN. There are no accounts or cloud saves to run.

Which simulation game plays in portrait?

Merge Café Story plays in portrait and landscape; the other seven are landscape games that support touch. If you need portrait management games for phones, look at the merge games in the catalog, which are all portrait.