Skip to content
Open source clone of Theme Hospital
Lua C++ Java CMake NSIS C Other
Branch: master
Clone or download
TheCycoONE [RDY] Cpp fmt (#1562)
* Hand formatted changes before automatic formatting

* Break up / shorten some long lines

* Add some missing braces for clarity

* Multiline strings are merged to let clang-format split them

* sdl_core's frame_count changed from a C style array to std::array
which made the length checks simpler.

* Add includes and forward declairs to avoid transitive dependencies

* Remove th_gfx_font.h include from th_gfx.h - circular dependencies

* using to shorten lines in th_map.cpp

* Avoid non-portable reinterpret_cast for parcels in th_map.

* Use more constants in th_map.

* Use class initializer for th_map classes

* Add clang files to ignore list

* Add clang-format file

* Reformat all files with clang-format

Also includes some manual braces.

* Disable clang-format for backdrop.h

* Clang-format AnimView src files

* clang-format common code

* Fix anonymous struct in union warning

Anonymous structs in anonymous unions are not supported by the standard.

* Check clang-format in travis

* Bin pack parameters

* Bin pack arguments too

* Full Google style

2 space indent, no forced break on braces.

* A couple format overrides

Order of usings in since 8 is smaller than 16.
Table layout, since 0x80 nicely fits in 8 columns.
Latest commit 4a1c98a Oct 6, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
AnimView [RDY] Cpp fmt (#1562) Oct 6, 2019
CorsixTH [RDY] Cpp fmt (#1562) Oct 6, 2019
DoxyGen Fix doxygen for out of source builds Feb 9, 2018
WindowsInstaller Remove config lines about audio support Aug 3, 2018
ground_tiles Add: Input file for the ground tiles, and an example input file. Oct 12, 2013
.gitattributes Remove old map editor Feb 10, 2016
.travis.yml [RDY] Cpp fmt (#1562) Oct 6, 2019
CMakeLists.txt Add Catch2 for unit testing (#1550) Jun 14, 2019
appveyor.yml Add Catch2 for unit testing (#1550) Jun 14, 2019
changelog.txt Bump versions for 0.63 final release May 24, 2019

Latest Release Release Travis Build Status AppVeyor Build Status

Forum | IRC Chat | Report Issue

A reimplementation of the 1997 Bullfrog business sim Theme Hospital. As well as faithfully recreating the original, CorsixTH adds support for modern operating systems (Windows, macOS, Linux and BSD), high resolutions and much more.

Getting Started

You will need the following:

  • Grab the latest installer for your system:
    • Windows and macOS builds can be downloaded directly from releases.
    • Linux and BSD repositories use either corsixth or corsix-th names packaged versions.
  • We use graphics, sound and other data from the original game so one of the following is required:
    • Original game CD from eBay etc. or your dusty bookshelf😄
    • A download from or Origin

Head over to our getting started page for more detail.


Coders and non-coders we want you!

We are always looking for help with improving CorsixTH. The code base is made up of Lua and C++ (with a little C added in for fun) however most of the game logic is written in Lua, we love Lua and its approachable and easy to pick up nature, so hit fork and get started! But don't worry if you don't code as we can always use your help in other areas and if you have ideas for the project please contact us or open a new issue!

Features & Bugfixes

We still have features to add and bugs to fix, check out our TODO list and the bug tracker here. Want to talk about adding a feature? post on our Google group or contact us.


CorsixTH has translations for 18 languages, some need updates. Head over to our dedicated forum section for more information.


Not a programmer? Don't know another language? Well you can still help! come visit our forum and get involved in map creation, graphics replacements and much more.


Our wiki is a good place to start, if you can't find what you are looking for feel free to contact us using one of the methods below.


You can’t perform that action at this time.