Powder Toy Lua API

From The Powder Toy
Revision as of 19:40, 1 September 2012 by Simon (talk | contribs) (New TPT Lua API docs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


The Powder Toy Lua API is a set of objects and functions that was introduced in version 83 (The TPT++ Release). They allow control over some aspects of the game, including graphics, element interactions and interfaces.

The API is split into several categories

Includes UI components such as buttons, labels and checkboxes, access to the very primitive window manager and input events
Methods and constants for interacting with the display mode
Methods and constants for modifying and creating elements
Old Lua API with the tpt.* prefix