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 / rudimentary 2D compass (scalable)

Author
Message
jwurmz
20
Years of Service
User Offline
Joined: 6th Oct 2003
Location: Arizona, USA
Posted: 6th Jul 2004 16:34


whipped this up for my own purposes; figured i'd drop it here as well. it just barely qualified.
comments?

"Creativity is knowing how to hide your sources" - Einstein
robo cat
20
Years of Service
User Offline
Joined: 23rd Feb 2004
Location: In a cat litter tray, near you...
Posted: 6th Jul 2004 23:31
Very good

Only problem I noticed is that trig commands are normally major speed consumers and that you do sin and cos of the same value 3 times in a row:



It would be quicker to do the sin and cos once per loop:



Other than that its a very good program as it could easily be adapted for use in most games requiring compasses.
Ilya
20
Years of Service
User Offline
Joined: 10th Aug 2003
Location:
Posted: 21st Jul 2004 12:43
Good.

I've Added The Angle After The NE/NW/SE/SW/N/E/W/S Text:

I Had To Use The Print Command And At A Certain Angle, The Text Is Inside The Circle.

-Ilya

Login to post a reply

Server time is: 2024-03-28 20:26:21
Your offset time is: 2024-03-28 20:26:21