diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2011-06-01 11:16:33 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2011-06-01 11:16:33 (GMT) |
| commit | 3d600c69558b4b3e3f05b860531942f1ea2cd1c1 (patch) | |
| tree | a9613463a3f70f856097786ea2c47a438b459e07 /build/test.lua | |
| parent | 2c8c4bc567b09996ee69584a7229356cd411c51a (diff) | |
| download | powder-3d600c69558b4b3e3f05b860531942f1ea2cd1c1.zip powder-3d600c69558b4b3e3f05b860531942f1ea2cd1c1.tar.gz | |
Add gravity field manipulation to Lua api, move gravity processing to after the particle update (Means a delay of 1 frame, but we get the ability to manipulate the field with Lua)
Diffstat (limited to 'build/test.lua')
| -rw-r--r-- | build/test.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/build/test.lua b/build/test.lua index fbb062f..a41bdd7 100644 --- a/build/test.lua +++ b/build/test.lua @@ -10,5 +10,9 @@ function do_step() end tpt.drawtext(numberthing, 50, "Oh my god, this is amazing", 255, 255, 255, 255) tpt.drawtext(mousex, mousey, "Oh my god, this is amazing", 255, 255, 255, 255) - return true + tpt.reset_velocity(10, 10, 20, 20) + tpt.reset_gravity_field(10, 10, 20, 20) + tpt.set_pressure(10, 10, 20, 20) + tpt.set_gravity(75, 45, 1, 1, 8) + return false end |
