Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Physics demonstration

Author
Message
SunDawg
19
Years of Service
User Offline
Joined: 21st Dec 2004
Location: Massachusetts
Posted: 31st Aug 2008 06:22 Edited at: 31st Aug 2008 06:39
I was bored today, and thought about how cool it would be if I could make an earth-gravity simulation for bouncing objects in 2D...so I did.


I did this in about an hour, so understand that it's sloppy. What do you guys think? (Parts may seem unnecessarily complicated, like the use of a typdef. This is because I want to be able to build from this into a pure C++/DarkGDK physics engine that doesn't require a library.)

EDIT: You can now adjust the power of the bounce with up and down arrow keys.


My site, for various stuff that I make.

Login to post a reply

Server time is: 2024-09-30 05:23:52
Your offset time is: 2024-09-30 05:23:52