Data Realms Fan Forums
http://45.55.195.193/

Two dimensional gravity simulator
http://45.55.195.193/viewtopic.php?f=82&t=26000
Page 1 of 1

Author:  Mehman [ Thu Oct 27, 2011 2:52 pm ]
Post subject:  Two dimensional gravity simulator

Hi,

This is a little game I made: as the title suggests is simulates gravity and it's in 2d, there's no real objective, just throw some planets in the sim and enjoy the show(yes these little grey discs that bounce off one another like pingpong balls are supposed to be planets).

Here is a video(the lag comes from fraps, I never experienced lag from the game alone, even with hundreds of objects):


The controls are:
arrow keys: move the screen
left mouse button: grab a planet, move a planet(hold it down)
right mouse button: add a small planet(hold the butteon and move the mouse, then release the button to give the planet some initial velocity)
space: pause, you can add planets while the game is on pause

It usually runs quite smoothly even on old computers, the collisions are a bit buggy.

So here it is:
Attachment:
grav8.rar [249.52 KiB]
Downloaded 299 times

Author:  trystanr [ Thu Nov 03, 2011 5:46 am ]
Post subject:  Re: Two dimensional gravity simulator

ยก Will make sure to try this out.
You allways make great stuff Mehman.

Author:  Asklar [ Fri Nov 04, 2011 8:56 pm ]
Post subject:  Re: Two dimensional gravity simulator

Collisions are buggy indeed, but it's an overall good simulator.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/