Skip to content

Releases: mkhan45/SIMple-Gravity

Lua security improvements

18 Jun 14:52
Compare
Choose a tag to compare

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

16 Jun 06:12
Compare
Choose a tag to compare

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

12 Feb 02:38
Compare
Choose a tag to compare
1.0

Nice

Instructions:

Extract into a folder
run gravity-v2

Improved GUI and relative trails

02 Feb 05:51
Compare
Choose a tag to compare

Compiled for windows

Completeish

22 Dec 22:41
Compare
Choose a tag to compare

Hopefully it runs on windows

first specs version

17 Dec 23:33
Compare
Choose a tag to compare
0.9.0

merged in specs branch

0.5

23 Nov 17:28
Compare
Choose a tag to compare
0.5
object editing