Releases: mkhan45/SIMple-Gravity
Lua security improvements
I've added a memory limit of 262,144 kilobytes (kibibytes?) and an instruction limit of 50,000. These are kind of arbitrary and might need to be changed, especially the instruction limit. Maybe I should add a (non lua) config file for it.
There's also a global body limit now.
I don't expect these changes to protect users from malicious targeted scripts but it should prevent kids from sending their friends a script to crash their computer
//TODO
compile for windows
lua support
ron serialization has been traded out for lua
This makes it easier to preset systems and actually makes things easier to read. Even without knowing how to code, some syntax is practically markup.
for i = 1, 10 do
for j = 1, 10 do
add_body({x = 20 * i, y = 20 * j, mass = 0.1, rad = 2})
end
end
This lua file replaces a >1k line ron file.
For a simple preset which doesn't need any logic:
add_bodies(
{x = 125.000, y = 70.000, x_vel = 0.000, y_vel = 1.000, mass = 80.000, rad = 4.500},
{x = 175.000, y = 70.000, x_vel = 0.000, y_vel = -1.000, mass = 80.000, rad = 4.500},
{x = -30.000, y = 70.000, x_vel = 0.000, y_vel = -1.000, mass = 0.500, rad = 1.000},
{x = 330.000, y = 70.000, x_vel = 0.000, y_vel = 1.000, mass = 0.500, rad = 1.000}
)
This is practically just markup and more legible than the ron was
There's probably some bugs
1.0
Improved GUI and relative trails
Compiled for windows
Completeish
Hopefully it runs on windows
first specs version
0.9.0 merged in specs branch