mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-08 23:10:44 +02:00
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)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user