Mathematical scripts

26/12/2009

Sometimes you need a small algorithm for a game, for instance a test if a point is inside or outside a triangle defined by three other points.

You can make and test your own solution which will certainly be very instructive, but other very dedicated people have come up with clever solutions and these are very tested!

a good link is: http://www.gmlscripts.com/

for instance, for the problem mentioned above you type triangle in the search field and it comes up with the solution in a readable format:

http://www.gmlscripts.com/script/point_in_triangle

it is easily translated in c for our nds purposes!


Important links

03/12/2009

A collection of important links for nds programming:

we concentrate on bitmap mode, so tutorials for maps and tiles are not mentioned here.

Also Palib is not used by the IEPRO group

overview:
http://en.wikipedia.org/wiki/Nintendo_DS_homebrew

good basic introduction:
http://dev-scene.com/NDS/Tutorials_Day_3

arm9/input.h File Reference
http://www.devkitpro.org/libnds/a00081.html

sound:
http://nocash.emubase.de/gbatek.htm#dssound

good intro but a few updates behind:
http://www.double.co.nz/nintendo_ds/

deep explanations:
http://www.fampennings.nl/maarten/nds/index.htm

registers:
http://www.coranac.com/2008/09/nds-register-overview/

about the graphic mode:
http://dev-scene.com/NDS/DOCgraphicmodes