Grav - Gravity Art Sandbox v0.2.0

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
User avatar
Nuthen224
Citizen
Posts: 50
Joined: Sun Jul 28, 2013 9:40 pm

Grav - Gravity Art Sandbox v0.2.0

Post by Nuthen224 » Thu May 21, 2015 12:12 am

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: http://imgur.com/a/A7xye#0
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!
Attachments
grav-0.2.0.love
(435.14 KiB) Downloaded 224 times
Last edited by Nuthen224 on Sun May 24, 2015 5:20 pm, edited 2 times in total.

User avatar
Tesselode
Party member
Posts: 555
Joined: Fri Jul 23, 2010 7:55 pm

Re: Grav - Gravity Art Sandbox

Post by Tesselode » Thu May 21, 2015 12:42 am

This is awesome! Really nice interface, too.

Germanunkol
Party member
Posts: 710
Joined: Fri Jun 22, 2012 4:54 pm
Contact:

Re: Grav - Gravity Art Sandbox

Post by Germanunkol » Sat May 23, 2015 8:47 pm

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.
trAInsported - Write AI to control your trains
Bandana (Dev blog) - Platformer featuring an awesome little ninja by Micha and me
GridCars - Our jam entry for LD31
Germanunkol.de

User avatar
undef
Party member
Posts: 438
Joined: Mon Jun 10, 2013 3:09 pm
Location: Berlin
Contact:

Re: Grav - Gravity Art Sandbox

Post by undef » Sat May 23, 2015 9:46 pm

Very nice! :D
twitter | steam | indieDB

Check out quadrant on Steam!

User avatar
qubodup
Inner party member
Posts: 775
Joined: Sat Jun 21, 2008 9:21 pm
Location: Berlin, Germany
Contact:

Re: Grav - Gravity Art Sandbox

Post by qubodup » Sat May 23, 2015 11:17 pm

Very nice-looking and smooth (non-laggy) movement!
lg.newImage("cat.png") -- made possible by lg = love.graphics
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)

User avatar
Nuthen224
Citizen
Posts: 50
Joined: Sun Jul 28, 2013 9:40 pm

Re: Grav - Gravity Art Sandbox

Post by Nuthen224 » Sun May 24, 2015 5:13 pm

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

User avatar
Nixola
Inner party member
Posts: 1941
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Grav - Gravity Art Sandbox v0.2.0

Post by Nixola » Tue May 26, 2015 8:21 pm

I feel proud of myself.
Also, it is really, really nice. Great work
gravart.png
1
gravart.png (211.5 KiB) Viewed 3734 times
gravart.png
2
gravart.png (208.7 KiB) Viewed 3734 times
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics

Kyle
Party member
Posts: 146
Joined: Sat Mar 16, 2013 9:46 pm

Re: Grav - Gravity Art Sandbox v0.2.0

Post by Kyle » Tue Jun 02, 2015 8:03 am

... 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

User avatar
Nuthen224
Citizen
Posts: 50
Joined: Sun Jul 28, 2013 9:40 pm

Re: Grav - Gravity Art Sandbox v0.2.0

Post by Nuthen224 » Tue Jun 02, 2015 4:42 pm

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!

User avatar
kbmonkey
Party member
Posts: 127
Joined: Tue Sep 01, 2015 12:19 pm

Re: Grav - Gravity Art Sandbox v0.2.0

Post by kbmonkey » Fri Oct 02, 2015 6:04 pm

Image

Wickedly cool art game you made Nuthen :awesome:

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests