Skip to content

Play OpenTTD (Web) in Your Browser

OpenTTD is a free, open-source transport business simulation based on Chris Sawyer's Transport Tycoon Deluxe. This link is a WebAssembly build of OpenTTD hosted on Cloudflare Pages that runs directly in the browser.

OtherNeeds checkingopenttd-web.pages.dev
OpenTTD (Web) cover
OpenTTD (Web) cover. The game runs on openttd-web.pages.dev.

OpenTTD (Web) background

OpenTTD began as a reverse-engineering project by Swedish programmer Ludvig Strigeus, who rebuilt Chris Sawyer's 1995 game Transport Tycoon Deluxe in the C language. The first public release appeared on 6 March 2004. Strigeus was already known for ScummVM and later created the µTorrent client. Since then a volunteer team has maintained the project, and its source code is released under the GNU General Public License version 2.

Over the years OpenTTD grew well beyond a straight copy of the original, adding larger maps, online multiplayer and support for community add-ons. Free replacement graphics, sound and music sets (OpenGFX, OpenSFX and OpenMSX) mean the original game files are no longer needed. The game is also distributed for free on Steam and from openttd.org.

Support for compiling OpenTTD with Emscripten was added to the official codebase by developer TrueBrain, building on earlier WebAssembly experiments by milek7. This page loads such a build through a file named openttd.js. Its loading screen warns that savegames are kept in the browser's IndexedDB storage and that the browser can delete them without notice, so long games are safer in the desktop version.

How to play OpenTTD (Web)

You run a transport company starting in an early year of the game's calendar. The goal is to make money by carrying passengers, mail and cargo such as coal, goods or oil between towns and industries. You lay track, roads, canals, docks and airports, then buy trains, buses, lorries, ships and aircraft and give them orders. Income depends on distance, speed and cargo type, while vehicles age and need servicing. As the years pass, new vehicle models appear, towns grow, and you expand your network or compete against AI or human companies.

  1. Open the page and wait for the WebAssembly files to finish loading.
  2. Choose New Game from the main menu, or adjust map size and difficulty first.
  3. Use the construction toolbars at the top of the screen to build a first rail or road route between two towns or an industry and its customer.
  4. Save often, and keep in mind that browser storage can be cleared; use the desktop version from openttd.org for long campaigns.
OpenTTD (Web) in Your Browser