> baseRndArray dw 1,1,2,3,5,8,13,21,54,75,129,204
Hah he got the Fibonacci series wrong (it's supposed to be ...13, 21, 34, 55, 89, 144, unless he did this on purpose).
> baseRndArray dw 1,1,2,3,5,8,13,21,54,75,129,204
Hah he got the Fibonacci series wrong (it's supposed to be ...13, 21, 34, 55, 89, 144, unless he did this on purpose).
In this case, 204/129 ~= 1.581, which is pretty close to the golden ratio 1.618. In fact, let's just list all the ratios:
1/1 = 1
2/1 = 2
3/2 = 1.5
5/3 = 1.667
8/5 = 1.6
13/8 = 1.625
21/13 = 1.615
54/21 = 2.571
75/54 = 1.389
129/75 = 1.72
204/129 = 1.581
And for the regular series: 1/1 = 1
2/1 = 2
3/2 = 1.5
5/3 = 1.667
8/5 = 1.6
13/8 = 1.625
21/13 = 1.615
34/21 = 1.619
55/34 = 1.618
89/55 = 1.618
144/89 = 1.618
Here's a plot of the ratios (regular series in blue, Carmack's in red...ish): http://i.imgur.com/WA7ipZA.pngIn this case, we end up with some lovely oscillations in the second half of Carmack's series. But does it look good for graphics, or behave well for gameplay purposes? No idea! Someone should find out what it's used for. It's an interesting little bit of historical excavation.
EDIT: I think that sequence isn't even used anywhere (I couldn't find any reference to it).
I just thought it was interesting, and another example of the same type of style which led to rocket jumping or bunnyhopping, which were also accidents.