View unanswered posts | View active topics It is currently Wed Dec 25, 2024 5:45 pm



Reply to topic  [ 3 posts ] 
 Two dimensional gravity simulator 
Author Message
User avatar

Joined: Tue Nov 17, 2009 7:38 pm
Posts: 909
Location: France
Reply with quote
Post 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 298 times


Thu Oct 27, 2011 2:52 pm
Profile
User avatar

Joined: Sat Oct 09, 2010 10:01 am
Posts: 303
Location: Afrique d' Sud
Reply with quote
Post Re: Two dimensional gravity simulator
ยก Will make sure to try this out.
You allways make great stuff Mehman.


Thu Nov 03, 2011 5:46 am
Profile YIM WWW
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Re: Two dimensional gravity simulator
Collisions are buggy indeed, but it's an overall good simulator.


Fri Nov 04, 2011 8:56 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: Google [Bot]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.066s | 15 Queries | GZIP : Off ]