Page 1 of 1

Grav - Gravity Art Sandbox v0.2.0

Posted: Thu May 21, 2015 12:12 am
by Nuthen224
Welcome to Grav! In this game, you can manipulate objects, and then use the power of GRAVITY to see what happens.

Image

Just place some objects around, and then they will undergo gravity and create some cool lines while they are at it. There are 4 different objects you can place, which can be seen at the bottom of the picture. The first two are ships which can move. The last two are planets which won't move. The two objects with rings around them are "repel" objects and will push other ships away from them, instead of attracting them.

The game also features options to follow objects around with the screen, to limit the amount of directions an object can move in, and to enable an absorb mode in which objects absorb smaller objects.

The Buttons on the top UI bar and their respective hotkeys are as follows:
  • Toggle Trace (F1): Turn the trace lines on or off. Also resets the traces.
  • Toggle Objects (F2): Turn all objects on or off.
  • Toggle Absorb (F3): Causes larger objects to absorb smaller objects.
  • Toggle Directions (F4): Limits the number of directions an object can move in, only effects objects spawned after it is on. The number of directions can be changed with the - or + to the right of it, or with the (- / +) keys.
  • Toggle Follow (F5): The camera will focus on an object and follow it around. The followed object can be changed with the - or + to the right, or with the (< / >) keys. While in follow mode, a movable pane will appear which can change the mass of an object, which changes the effect its gravity has on other objects. Clicking on an object will also make the camera follow it.
  • Pause (Space): Freeze simulation. Useful for placing objects around.
  • Origin (F6): Moves the camera back to the start.
  • Clear (F7): Deletes everything so you can start fresh.
All of the objects are spawned by clicking on the screen, but which one is spawned is chosen by the bar at the bottom of the screen.
The buttons on the bottom UI bar are:
  • Ship (1): A basic ship that moves around. You can give it a starting velocity. Ships will move towards other ships and planets.
  • Repel Ship (2): Give off a reverse gravity that pushes other ships away.
  • Planet (3): An object of greater mass that ships will move around.
  • Repel Planet (4): A planet with reverse gravity that will push ships away.
All objects also have alternate forms that can be created by holding the control key while spawning them, these will have more mass and more gravity.

Additional commands:
  • (WASD / arrow keys) to move the camera. Holding shift will move the camera faster.
  • Using the scroll wheel will zoom.
  • (F9) will hide the help text.
  • (F10) toggle a grid for the mouse to snap to. (alt) will turn the grid on momentarily.
  • (F11) hide the axis at the center of the screen.
  • (F12) toggle fullscreen mode.
  • (delete) can be used to remove an object if it is being followed by the camera.
I've been working on this project for the past week. I would appreciate if you tried it out, and maybe you'll make some cool art along the way. Enjoy!

Some other cool pictures:
Image
Movement limited to 8 directions

Image
A cool pattern

Image
You can create a maze for a ship to escape out of repel planets

For more pictures see the full development progress album: https://love2d.org/imgmirrur/A7xye.html
The GitHub page for Grav can be found here: https://github.com/Nuthen/Grav

Updated to v0.2.0, featuring grid snapping and fullscreen mode!

Re: Grav - Gravity Art Sandbox

Posted: Thu May 21, 2015 12:42 am
by Tesselode
This is awesome! Really nice interface, too.

Re: Grav - Gravity Art Sandbox

Posted: Sat May 23, 2015 8:47 pm
by Germanunkol
Oh wow, this is awesome!

I've thought about making something similar a while back, you beat me to it.
Very well done, especially for only one week of work!

I agree that the interface looks very nice.

A toggable background grid with snap-to-grid function would be neat.

Re: Grav - Gravity Art Sandbox

Posted: Sat May 23, 2015 9:46 pm
by undef
Very nice! :D

Re: Grav - Gravity Art Sandbox

Posted: Sat May 23, 2015 11:17 pm
by qubodup
Very nice-looking and smooth (non-laggy) movement!

Re: Grav - Gravity Art Sandbox

Posted: Sun May 24, 2015 5:13 pm
by Nuthen224
Grid snapping, you say?

Image

You can find the new version in the first post. Version 0.2.0 of Grav features grid snapping and fullscreen mode!
You can either hold alt to have the grid on temporarily, or you can press F10 to toggle the grid.

Thanks for the feedback everyone! And, awesome video qubodup!

Here are some patterns possible from the new grid snapping feature:
ImageImage

Re: Grav - Gravity Art Sandbox v0.2.0

Posted: Tue May 26, 2015 8:21 pm
by Nixola
I feel proud of myself.
Also, it is really, really nice. Great work
1
1
gravart.png (211.5 KiB) Viewed 8943 times
2
2
gravart.png (208.7 KiB) Viewed 8943 times

Re: Grav - Gravity Art Sandbox v0.2.0

Posted: Tue Jun 02, 2015 8:03 am
by Kyle
... where did you come up with the color scheme for your UI?! I'm a little weirded out because it looks exactly like what I was just about to do in my own game, and that's based on my previous project...

Image

Re: Grav - Gravity Art Sandbox v0.2.0

Posted: Tue Jun 02, 2015 4:42 pm
by Nuthen224
Hm, I've always found a shade of blue like that goes well with a darker black/grey color, I promise I didn't steal it! :) Also, your UI looks very nice! I really like the icons.

And, thanks Nixola!

Re: Grav - Gravity Art Sandbox v0.2.0

Posted: Fri Oct 02, 2015 6:04 pm
by kbmonkey
Image

Wickedly cool art game you made Nuthen :awesome: