Planets (SIM)

Show off your games, demos and other (playable) creations.
Post Reply
User avatar
SirRanjid
Prole
Posts: 30
Joined: Sun Nov 19, 2017 1:44 pm
Contact:

Planets (SIM)

Post by SirRanjid » Sat Feb 24, 2018 4:12 am

Image

Here's a small planet sim that's quite interactive. At first it was planned to be a doodle but it kept growing.

Code: Select all

Controls:
[LM] = LEFt Mouse Button
[RM] = RIGHT Mouse Button
[MM] = MIDDLE Mouse Button
[MWU]= Mouse Wheel UP
[MWD]= Mouse Wheel DOWN

[SH] = (L/R)Shift
[CT] = (L/R)Control (CTRL)
[SP] = Space

//--//--//--//--//--\\
\\C_\\T_\\R_\\L_\\:_//

Hold and drag [LM] to create planet. (+[CT] to create frozen)
Hold and drag [LM] on planet to drag. (+[SH] to drive planet or set speed when paused)
When dragging a planet you can (un-)freeze with +[RM].

Hold and drag [RM] on a planet to create orbiter. (+[SH] to invert initial speed)

Hold [MM] to remove all planets.

[MWU]/[MWD] to in-/decrease weight.
[MWU]/[MWD] + [SH] to in-/decrease travel-time/speed.
[MWU]/[MWD] + [CT] to in-/decrease radius.

[SP] to un-/pause.
[TAB] to toggle info.

Creating an orbiting planet:
Image

Plan crashes when paused:
Image

Driving a planet ([LM] + [SH]):
Image

Dragging and freezing:
Image
Attachments
planets.love
(6.91 KiB) Downloaded 58 times

User avatar
Hydrogen Maniac
Prole
Posts: 34
Joined: Sat Dec 19, 2015 9:59 pm

Re: Planets (SIM)

Post by Hydrogen Maniac » Sat Mar 24, 2018 4:40 pm

This is pretty neat, sorta relaxing and pretty fun at the same time. The only thing that's really 'missing' is the ability for planets to damage eachother when they collide. Aside from that I wish it didn't start in fullscreen and I'm not sure if there's a proper way to close it aside from pressing alt-f4. Anyways great job overall :awesome: .
I'm way too sober for this...

User avatar
SirRanjid
Prole
Posts: 30
Joined: Sun Nov 19, 2017 1:44 pm
Contact:

Re: Planets (SIM)

Post by SirRanjid » Sat Mar 31, 2018 1:21 pm

Thanks :) I also thought about them damaging each other but just went with a particle/shader effect.
Actually I still wanna make them crack and fracture. But I can't edit the circle shapes and I'm not sure about using polygons(performance and looks wise).
Yeah disabling fullscreen is just as DIY(in the conf.lua).

Post Reply

Who is online

Users browsing this forum: MissDanish and 3 guests