Home

Awesome

The Powder Toy - December 2024

Get the latest version from the Powder Toy website.

To use online features such as saving, you need to register an account. You can also visit the official TPT forum.

Have you ever wanted to blow something up? Or maybe you always dreamt of operating an atomic power plant? Do you have a will to develop your own CPU? The Powder Toy lets you to do all of these, and even more!

The Powder Toy is a free physics sandbox game, which simulates air pressure and velocity, heat, gravity and a countless number of interactions between different substances! The game provides you with various building materials, liquids, gases and electronic components which can be used to construct complex machines, guns, bombs, realistic terrains and almost anything else. You can then mine them and watch cool explosions, add intricate wirings, play with little stickmen or operate your machine. You can browse and play thousands of different saves made by the community or upload your own – we welcome your creations!

There is a Lua API – you can automate your work or even make plugins for the game. The Powder Toy is free and the source code is distributed under the GNU General Public License, so you can modify the game yourself or help with development.

Build instructions

See the Powder Toy Development Help section on the main page of the wiki.

Thanks

Libraries and other assets used

Instructions

Click on the elements with the mouse and draw in the field, like in MS Paint. The rest of the game is learning what happens next.

Controls

KeyAction
TABSwitch between circle/square/triangle brush
SpacePause
Q / EscQuit
ZZoom
SSave stamp (use with Ctrl when STK2 is out)
LLoad last saved stamp
KStamp library
0-9Set view mode
P / F2Save screenshot as .png
EBring up element search
FPause and step to next frame
GIncrease grid size
Shift + GDecrease grid size
HShow/Hide HUD
Ctrl + H / F1Show intro text
D / F3Debug mode (use with Ctrl when STK2 is out)
IInvert Pressure and Velocity map
WCycle gravity modes (use with Ctrl when STK2 is out)
YCycle air modes
Ctrl + ECycle edge modes
BEnter decoration editor menu
Ctrl + BToggle decorations on/off
NToggle Newtonian Gravity on/off
UToggle ambient heat on/off
Ctrl + IInstall powder toy, for loading saves/stamps by double clicking
BacktickToggle console
=Reset pressure and velocity map
Ctrl + =Reset Electricity
[Decrease brush size
]Increase brush size
Alt + [Decrease brush size by 1
Alt + ]Increase brush size by 1
Ctrl + C/V/XCopy/Paste/Cut
Ctrl + ZUndo
Ctrl + YRedo
Ctrl + Cursor dragRectangle
Shift + Cursor dragLine
Middle clickSample element
Alt + Left clickSample element
Mouse scrollChange brush size
Ctrl + Mouse scrollChange vertical brush size
Shift + Mouse scrollChange horizontal brush size
Shift + RHorizontal mirror for selected area when pasting stamps
Ctrl + Shift + RVertical mirror for selected area when pasting stamps
RRotate selected area counterclockwise when pasting stamps
F11Toggle fullscreen

Command Line

CommandDescriptionExample
scale:SIZEChange window scale factorscale:2
kioskFullscreen mode
proxy:SERVER[:PORT]Proxy server to useproxy:wwwcache.lancs.ac.uk:8080
open FILEOpens the file as a stamp or game save
ddir DIRECTORYDirectory used for saving stamps and preferences
ptsave:SAVEIDOpen online save, used by ptsave: URLsptsave:2198
disable-networkDisables internet connections
disable-bluescreenDisable bluescreen handler
redirectRedirects output to stdout.txt / stderr.txt
cafile:CAFILESet certificate bundle pathcafile:/etc/ssl/certs/ca-certificates.crt
capath:CAPATHSet certificate directory pathcapath:/etc/ssl/certs