Quick note: I just uploaded a new tutorial to Kongregate. This one explains - with code - the formulae I used to build the Bad Guys in my game TriGaVoid.
The code I used is actually about seven years old. Back when I was first learning javascript and "Dynamic" HTML, I tried to reproduce some of the experiments from <a href="http://assembler.org/xlat/">Assembler.org</a>, which lead me to the <a href="http://www-groups.dcs.st-and.ac.uk/~history/Curves/Curves.html">Famous Curves Index</a>. After a quick couple of weeks of teaching myself basic trigonometry, I had the first few up and running in a thing I called the Trigonometron. Once I started learning Actionscript, back in 2002, I quickly ported everything over to Flash, and spent from then to now looking for something to do with the code. So <a href="http://www.kongregate.com/games/johnwinkelman/trigavoid?referrer=johnwinkelman">here it is</a>.<br><br>All of the code is Actionscript 3, which should make it easily portable to pretty much any other language. At least, all of the actual movement algorithms should work - with syntax tweaking - in any language which supports math.<br><br>Enjoy!<div>
</div>
Advertisement
Latest Entries
Propagation By Water, part 1
1229 views
Declarative Declarations
1469 views
4e7-ish, or UFEC!
1168 views
Diving Back Into This Stuff
984 views
Another Tutorial Uploaded
1224 views
Perlin Textures in Flash Tutorial
1286 views
I Launched a Game!
1348 views
Shaded Landscape, Experiment 1
1134 views
Perlin Ants
1189 views
Tile Game Engine Update: Where Am I?
1076 views
Advertisement