Re: LF: Doom: help ! bin files....


[Prev][Next][Index][Thread]

Re: LF: Doom: help ! bin files....



On Wed, 9 Jul 1997 14:24:58 -0400 (EDT) Hmlacage@aol.com writes:
>Well: i have just finished coding 1/3 of a doomlike game: i would like
to
>test it but i need huge tables for tan, sine, cosine: 
>1)  tan table: tan(x) * 128 where x is from 0 to 1.568 ( in radians )
>by step of 0.007 each entry is a word lenght, there are 225 entries 
>2)  y_step :  tan(x)*64 where x is from 0 to 1.568 ( 0.007 increment ) 
>3)  x_step :  64/tan(x)  where x is from 0 to 1.568 ( 0.007 increment )
>4)  inv_cos:  128/cos(x) where x is from 0 to 1.568 ( 0.007 increment )
>5)   inv_sin:   128/sin(x) where x is from 0 to 1.568 ( 0.007 increment
) 

>i need badly 1) and 4) : i have no idea as to how build these bin files:
i
>know some people here have done some ( jimmy for his torus demo at least
) .
>So could someone explain me how to do these or do them for me ? I would
be
>gratefull for all help ! ( it is difficult to imagine myself buiding
these
>tables by hand) 

If you're assembler is any good, it will have the capability to generate
such tables for you.  However the A68K used for Fargo is not quite state
of the art, so you have to write a seperate program to make them.  Below
is a UUEncoded file which (hopefully) contains the 5 tables.

begin 777 stuff.bin
M```````!``(``P`$``4`!@`'``@`"``)``H`"P`,``T`#@`/`!``$0`2`!(`%
M$P`4`!4`%@`7`!@`&0`:`!L`'``=`!X`'P`@`"``(0`B`",`)``E`"8`)P`HI
M`"D`*@`K`"P`+0`N`"\`,``Q`#(`,P`T`#4`-P`X`#D`.@`[`#P`/0`^`#\`V
M0`!!`$,`1`!%`$8`1P!(`$H`2P!,`$T`3P!0`%$`4@!4`%4`5@!7`%D`6@!;V
M`%T`7@!@`&$`8@!D`&4`9P!H`&H`:P!M`&X`<`!R`',`=0!W`'@`>@!\`'T`2
M?P"!`(,`A0"&`(@`B@",`(X`D`"2`)0`EP"9`)L`G0"?`*(`I`"G`*D`JP"NF
M`+$`LP"V`+D`NP"^`,$`Q`#'`,H`S@#1`-0`V`#;`-\`X@#F`.H`[@#R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,>`OT"WP+#`JD"D0)Z`F8"4@)``B\"'@(/`@$!\P'F`=H!SP'$`;D!KP&F!
M`9T!E`&,`80!?`%U`6X!9P%A`5H!5`%/`4D!1`$^`3D!-0$P`2L!)P$C`1\!Y
M&P$7`1,!#P$,`0D!!0$"`/\`_`#Y`/8`\P#P`.X`ZP#I`.8`Y`#B`-\`W0#;)
M`-D`UP#5`-,`T0#/`,T`RP#*`,@`Q@#%`,,`P0#``+X`O0"[`+H`N0"W`+8`'
MM0"T`+(`L0"P`*\`K@"L`*L`J@"I`*@`IP"F`*4`I`"C`*,`H@"A`*``GP">G
M`)T`G0"<`)L`F@":`)D`F`"8`)<`E@"6`)4`E`"4`),`D@"2`)$`D0"0`)``G
MCP"/`(X`C@"-`(T`C`",`(L`BP"+`(H`B@")`(D`B0"(`(@`B`"'`(<`AP"&O
M`(8`A@"%`(4`A0"%`(0`A`"$`(0`@P"#`(,`@P""`((`@@""`((`@@"!`($`*
M@0"!`($`@0"!`(``@`"``(``@`"``(``@`"``(``@`"``(``@`"``(``@`"`%
``
end

--
Patrick Davidson (ariwsi@juno.com)
Visit my home page!  Stuff for Amiga, TI-85, TI-92, even DOS!
http://www.calweb.com/~kwdavids/patrick/
http://www.toptown.com/hp/ariwsi/


References: