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.

The 20 Line Challenge / Gravity simulator

Author
Message
BuzzBob
20
Years of Service
User Offline
Joined: 12th Apr 2003
Location:
Posted: 17th Jun 2003 22:01
This simulates a comet moving within a field of five stars at very high speed, although it can simulate any object moving thorugh a field of five or less objects. It works for DBC and should work for DBPro but I havent tested it. The controls are listed below, any feedback is welcome.
Start Comet ENTER
Stop Comet SPACE
Change comet speed S
Change comet position P
Clear screen C
Change stars position and mass G
Guruchild
20
Years of Service
User Offline
Joined: 13th May 2003
Location: United States
Posted: 18th Jun 2003 02:39
That is the most unreadable glob of mess I've ever seen.

betpet
21
Years of Service
User Offline
Joined: 16th Jan 2003
Location: United Kingdom
Posted: 18th Jun 2003 15:19
You should have read my final year dissertation...

BuzzBob
20
Years of Service
User Offline
Joined: 12th Apr 2003
Location:
Posted: 18th Jun 2003 23:53
What glob of mess? The source? That's cos it's got to fit into 20 lines guruchild! I've gotta a better version with comments and all that but that takes a few hundred lines so I couldn't enter it into the competition! If you want to read it it's here now. This version also lets you change the speed of the comet with the up and down keys although if the speed is very high it gets jerky on slower computers.

Attreid
21
Years of Service
User Offline
Joined: 27th Nov 2002
Location:
Posted: 21st Jun 2003 23:15
hey, it's very good

"He will come...the voice from the outer world,
bringing the holy war, the Jihad, which will cleanse the Universe and bring us out of darkness."
Guruchild
20
Years of Service
User Offline
Joined: 13th May 2003
Location: United States
Posted: 22nd Jun 2003 09:16


Login to post a reply

Server time is: 2024-03-29 14:49:51
Your offset time is: 2024-03-29 14:49:51