This is the full Terraria 1.1.2 source code, decompiled with ILSpy and fixed so that it compiles successfully. Does not include the server code.
Make sure you have the XNA framework and the NET Framework installed on your machine.
Use this to create a cracked client, cheat, or simply learn how the game is made.