- The ALL lua-console for powder-toy. A guest Mar 26th, 2012 398 Never Not a member of Pastebin yet? - Current command line text for console.
- The Powder Toy is a desktop version of the classic 'falling sand' physics sandbox, which simulates air pressure and velocity, heat, gravity, and a countless number of interactions between different substances! This repo is my mod of that game. donkus/The-Powder-Toy-DonkusMod.
Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Powder toy is nice, but it would be epic if there was a 3d version, and the ability to add objects that move, like gears, and a more complex physics engine. Just imagine; You could even build a car, or design a nuke that detonates using real physics. If its super complex enough.
Sign upBranch:master
Find file Copy path
Fetching contributors…
Super Dmg Command Powder Toy Online
### CONSOLE ### |
the console in this version is a python console and will execute any command you enter. |
the api for interacting with the powder toy is contained in the tpt module and is already imported at startup. |
currently implemented api functions: |
create(x,y,type) create a particle of type <type> at <x>,<y> |
reset_velocity() resets all velocity |
reset_pressure() resets all pressure |
reset_sparks() resets all sparks |
### USING SET COMMANDS ### |
the console uses keywords to identify variables of what to set, you can specify x and y coords with x=100 y=100, ect. |
i is the particle number |
name will change all of name's type to the setto variable. It needs to be a string 'dust' ect, 'all' for all. |
the setto is what the particle(s) will be set to, it is a string for the type/ctype commands, and an int for the rest. |
you need to set the to* variable and one location/name/coords for it to work. |
set_type(x=,y=,i=,name=',setto=') |
set_life() |
set_temp() |
set_tmp() |
set_x() |
set_y() |
set_vx() |
set_vy() |
set_ctype() |
pause() pause the game(note that closing the console |
pauses the game) |
unpause() unpause the game(note that closing the console |
pauses the game) |
toggle_pause() toggle pause(note that closing the console |
pauses the game) |
close_console() closes the console and pauses the game |
open_console() opens the console |
toggle_console() toggles the console |
NOTE: these functions don't do bounds checking, which means that they CAN AND |
WILL CRASH the powder toy. be carefull. |
### TIPS&TRICKS ### |
all functions that need a particle type expect a number. but instead of doing |
tpt.set_life(32,life) you can do tpt.set_life(element['uran'],life) |
### COMPILING ### |
before you compile you should have python 2.x installed. |
you must run the 'getheader.py' script to get the correct linking options, add these options to the makefile |
Super Dmg Command Powder Toy Mod
Copy lines Copy permalink