jeudi 28 août 2008

Different!

This is a brief recapitulation of the differences between "normal" programming and programming in the Dev-Kit pro, in C.

The pictures ->using gfx2gba see this blog, several entrees
The sounds -> using Sox, see http://www.double.co.nz/nintendo_ds/nds_develop4.html

from JAVA (or other higher languages) to C, common C errors: http://www.drpaulcarter.com/cs/common-c-errors.php
-> mind the doubles and the floats! special for the nds!!!
-> mind the sin, cos, abs, atan! Special for the nds!!! (ok, turns out to be a strange bug in iprintf)
-> mind the pointers , http://boredzo.org/pointers/
-> mind the structs http://www.learn-programming.za.net/programming_c_learn09.html
-> mind the headers!
-> mind the order in which you introduce methods!

then also because of C, well...
the makefile
the bat file

and nds pecularities:
the IRQ
the videomodes
sprites or double buffering

and debugging, having to build, having to download, putting the .nds file in an emulator,
and even that can be different from really trying your game on the nds itself!

Programming environment, not trivial either!
For me there are two possibilities:
Shared Node by Peter van Vliet available for students from HSL Leiden.
Microsoft's Visual C++ Express, specially prepaired for the DevKit Pro.