Lookup Tables for Math Equations
Well, I've begun creating little tutorials for myself.
The problem is that it sometimes can be months between flash game projects, and I often forget some of the things I learned last time around (although they are much easier to re-learn, but I usually just re-member).
So I started taking notes, but then I started just making little flash examples for myself, and then thought about it some, and just went ahead and started making a little tutorial.
I've never actually seen this technique used or suggested anywhere online (although I'm sure it's not original to me). So, I am posting it here (soon to be followed by many others).
What this does is allows you to take a complex equation, which will bring your flash game to it's knees, and predict different inputs and pre-calculate outputs. Then during the game if you didn't happen to predict an input, it will go ahead and calculate for that input, but then from that point forward consider that calculation as a "pre-calculated" calculation.
I've not actually used this technique in any game yet, and I know there will have to be some adjustments to it (you will probably have to round to whole numbers, because I don't think it will work with decimal inputs, or you will have to multiply everything by 100 to allow for decimals to the second place). So basically, if anyone uses this technique, let me know how it turns out please!
Tutorial Page
Source Code





