If array lookup (mysin[some-calculated-angle]) is faster than whatever
Flash uses to find Math.sin(some-calculated-angle) --you could write a
loop to test that, since I don't know if it's true-- then the simplest
thing would be to write (in a dummy fla) a loop to dump the contents you
need (in the format/precision you need it) to the output panel and then
paste that into the as file to create the array.
(bullet storms at 3am on a Sunday?)
Helen
--
http://flash-creations.com
http://i-technica.com
Andreas Rønning wrote:
Anyone know of good online tutorials or treatments on generating and
using lookup tables to speed up sin/cos and similar math in AS2?
I'm looking for ways to reuse the results of a single calculation
across a number of variations of the calculated problem.
Yes this is game related :) Shoot-em-up related to be specific. Flash
doesn't lend itself well to bullet storms it would seem.
- Andreas
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com