DOS Games Message Board
DOS Games Discussion
A message board to talk about DOS games, get help, and find old games.
Do NOT post warez or abandonware requests please
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Qbasic4.5 Codes 01: high speed Cosine and Sine

 
Post new topic   Reply to topic    DOS Games Discussion Forum Index -> Game Creation
Author Message
NeonAmd64
Experienced Member
Experienced Member


Offline
Joined: 20 Mar 2006
Posts: 84
Location: Next to you, if not then who

PostPosted: Wed Apr 05, 2006 10:49 pm     Post subject: Qbasic4.5 Codes 01: high speed Cosine and Sine Reply with quote

Here is a code for Qbasic4.5 Programmers to increase the speed of cosine and sine in your program: Happy

The Code

Code:
DIM SHARED Cose!(360), Sine!(360)



SUB cosine.table
RA = (180 / (22 / 7))
FOR i = 0 TO 359
Cose!(i) = COS(i / RA)
Sine!(i) = SIN(i / RA)
NEXT i
END SUB

I had created lots of codes during my life. I will share it with you If anyone is interested then take it ...

My apology again for what I had done .. Ashamed
Back to top
Display posts from previous:   
Post new topic   Reply to topic    DOS Games Discussion Forum Index -> Game Creation All times are GMT - 5 Hours
Page 1 of 1

 
Free Windows games


Powered by phpBB © 2001, 2005 phpBB Group and Ask an Expert
Also powered by Darren and the other admin and mods' hard work! ;)