Release

Planets

3

gtolle 2018-10-31 04:36

This is a fun little simulator for gravity.

Touch and drag to fling planets around.

If they crash, they disappear.

Try to get them to orbit each other!

Planets.nx | Open in app
2019-02-12 08:21
Planets.nx | Open in app
2018-10-31 15:28
Planets.nx | Open in app
2018-10-31 04:47

desbyc 2018-10-31 06:02

Nice and smooth. Hard to „Play“😬😀.


desbyc 2018-10-31 06:07

I got an Error if i add to many Planets.
„Index Out Of Bounds
IF PP (Q) = 1 THEN“


Timo 2018-10-31 07:41

Interesting thing :)
Looks like you had problems creating the screenshot. On iOS just use the in-game menu to "Capture Program Icon", then it appears in iCloud Drive.


was8bit 2018-10-31 09:51

Very fun :)


Timo 2018-10-31 12:20 (Edited)

You could improve the appearance a lot by adding a stars background. Just saying :)


was8bit 2018-10-31 13:33 (Edited)

Also, maybe let them bounce off each other a few times before they go... the fun doesn't last very long as is.....


gtolle 2018-10-31 15:29

Thanks for the suggestions! I added a starry background and a better bounds check for the array to prevent that error.


gtolle 2018-10-31 15:33

Also, Timo, does the IF statement do short-circuiting or not?

For example, if I ran “IF Q < MAX AND PP(Q) = 1 THEN...” would the PP(Q) lookup happen even if Q is greater than MAX?


was8bit 2018-10-31 17:07 (Edited)

No it doesn't cut out early, and yes it checks all conditions .. I just tested and this produces an out of bounds error... great question :)

DIM X(3)
Q=5
IF Q<=3 AND X(Q)=0 THEN
END IF


Timo 2018-10-31 17:21

I wish it did, but it was complicated to implement. Maybe I will try again.


gtolle 2018-10-31 19:23

Got it! Thanks - this is an awesome project.


Toddl 2018-10-31 19:35

Great!


Timo 2019-01-24 20:05

This needs a little update to work with v0.11.


Log in to reply.