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.

Code Snippets / [DBC] Demonstration of Cos and Sin (also a big stick of TNT)

Author
Message
Brazos
21
Years of Service
User Offline
Joined: 7th Apr 2003
Location:
Posted: 12th Jun 2009 23:29 Edited at: 12th Jun 2009 23:32
This program uses two spheres (blue and yellow). The blue sphere moves across the screen from left to right. The yellow sphere orbits the blue sphere.There is a control panel for each sphere. The blue box controls the x/y/z placement and the speed of the blue sphere. The yellow box controls the x/y/z orbit size and the
speed of the yellow sphere. There is also a BIG stick of TNT. Click it and watch the yellow sphere explode. Hope you enjoy this simple demonstration. (No graphics needed, they are coded.)

Dr Tank
15
Years of Service
User Offline
Joined: 1st Apr 2009
Location: Southampton, UK
Posted: 13th Jun 2009 05:39
Nice demo. Quite aesthetically pleasing in and oldskool way. Nice explosion and twinkling stars.

HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 16th Jun 2009 16:15
nice one, works in DBPro ok.

Dark Physics makes any hot drink go cold.
Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 7th Jul 2009 03:39
Nice explosion.

Cos and sin........never used 'em, never will.

Your signature has been erased by a mod because it was too big.CHANGE IT OR DIE!!!!!
AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 7th Jul 2009 03:46
Quote: "Cos and sin........never used 'em, never will. "


Seriously? You've never used Sin() or Cos() in a program before?

i like orange
bobbel
15
Years of Service
User Offline
Joined: 5th Jan 2009
Location: In my DBPro case xD
Posted: 13th Jul 2009 20:58
Me neither. New x, y and z value are tha shiz



Oh No, there's too much blood in my caffeine system!
Stack Overflow: Too many pancakes...
The programmer's national anthem is 'AAAAAAAAHHHHHHHH'. -Weinberg, p.152

Login to post a reply

Server time is: 2024-05-05 06:55:25
Your offset time is: 2024-05-05 06:55:25