* 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 appropriately. * 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 config.h.in since 8 is smaller than 16. Table layout, since 0x80 nicely fits in 8 columns.
Latest Release

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:
Head over to our getting started page for more detail.
Developers
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.
Translation
CorsixTH has translations for 18 languages, some need updates. Head over to our dedicated forum section for more information.
Other
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.
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.
Contact
- CorsixTH forums located here
- Follow us on twitter (@CorsixTH) and on Facebook
- IRC #Corsix-TH on irc.freenode.net
- Subscribe to our Google Developer group