Showing posts with label mathematics. Show all posts
Showing posts with label mathematics. Show all posts

Monday, April 23, 2007

Alternate Pseudo-Random Number Generator

By:
"When developing games you often need a PRNG that, once initialized with a seed value, produces always the same sequence of random numbers after it. The Math.rand() function in Flash is a PRNG, but it doesn't let you define a seed value (I think it's picked randomly when the swf starts, but there isn't much information about it) so another solution has to be found."

An interesting alternate way to generate pseudo-random numbers using ActionScript.

Tuesday, April 17, 2007

Vectors for Flash

By:
"These tutorials are meant to explain how to use vectors with Flash and actionscript. You dont have to know high level mathematics to understand the ideas, but some previous knowledge is always good. Please notice that only 2D vectors are discussed and if you are looking for 3D vectors then i am afraid you need to look from somewhere else."

Great review of basic level vector arithmetic in the context of the ActionScript language.