the tophat cookbook

Welcome to the tophat cookbook. You can find all sorts of recipes for doing common stuff in tophat.

To fully understand examples in the cookbook, it is important to know the basic concepts used in tophat.

Tophat doesn’t have any kind of scenes. Everything is structured and managed by the player. User has to explicitly call functions into tophat to get results or draw stuff. Tophat doesn’t do nearly anything automatically - the user is in front of the steering wheel.

Important facts:

Quick type reference:

th.Vf2
2d vector
th.Transform
struct defining transformation
th.iu
alias for int32
th.uu
alias for uint32
th.fu
alias for real32

contents