|
|
Line 1: |
Line 1: |
− | ==What is this?==
| + | JU4oOM <a href="http://cpfynckgzlhn.com/">cpfynckgzlhn</a>, [url=http://rqjesgjpmhcj.com/]rqjesgjpmhcj[/url], [link=http://trdtmrpknkyq.com/]trdtmrpknkyq[/link], http://cauuztrehyoi.com/ |
− | The touhou ds library is an ever growing collection smaller libraries originally written to handle various backend tasks in a [[Thds|game called thds]] with an emphasis on ease of use, simplicity, memory and cpu efficiency, comprehensive documentation (okais i am sorta lacking here >_>), and friendly support. ^^^ The libraries in this collection are mostly useful for creating games in the bullet hell genre.
| + | |
− | | + | |
− | In addition to the ones already here, these are to be added soon:
| + | |
− | * <s>Background management and manipulation [[Thbg|*comming soon*]]</s> *done* ^^
| + | |
− | * Game text.. functions for displaying in game texts, might support variable width/scaleable fonts
| + | |
− | * Non-danmaku sprite lib (not multiplexed, each screen separate)
| + | |
− | | + | |
− | If you can think of or need anything else just ask.
| + | |
− | | + | |
− | Just thought i should mention that its very much a work in progress, the code is a bit ugly and there are probably a few bugs to be sorted (just see the [[Category_talk:LIBTHDS|talk page]] ~_~)
| + | |
− | | + | |
− | ==Where do i get it?== | + | |
− | Latest versions can be obtained via [http://en.wikipedia.org/wiki/Subversion_(software) SVN]. Human readable form is [http://svn.blea.ch/thdslib/trunk/thdslib/ here], or you may svn export (or checkout but see notes below) from svn://svn.blea.ch/thdslib/trunk/thdslib/ .
| + | |
− | <source lang="bash">
| + | |
− | svn export svn://svn.blea.ch/thdslib/trunk/thdslib/
| + | |
− | </source> | + | |
− | <s>A tar.bz2 of [http://blea.ch/~eris/thdslib5.tar.bz2 Version 5] is here as well. Currently on >= version 40...</s> this is really so out of date, please do not use.. I will try to upload a newer version of the archive shortly.
| + | |
− | | + | |
− | Examples are found in thdslib/examples. In order for them to compile the THDS enviroment variable should be set to the path containing thdslib. Something like:
| + | |
− | <source lang="bash">
| + | |
− | export THDS="/home/isabella/thdslib"
| + | |
− | </source>
| + | |
− | | + | |
− | It is not necessary to compile thdslib itself as all necessary .a files are provided precompiled in ./lib/ directory. If changes are made to thdslib's sources, the following procedure can be used to recompile it:
| + | |
− | <source lang="bash">
| + | |
− | cd source
| + | |
− | make clean
| + | |
− | make install
| + | |
− | </source>
| + | |
− | | + | |
− | If 'svn checkout' was used to obtain sources: when compiling the examples you may want to remove the .svn directory from the MyNitroFs/ directory prior to compilation due to SVN putting a directory named ".svn" in every directory that would otherwise be included in the resulting .nds binaries. Ex:
| + | |
− | <source lang="bash">
| + | |
− | mv MyNitroFs/.svn stupidsvnfolder
| + | |
− | </source>
| + | |
− | | + | |
− | ==Toolchain==
| + | |
− | [http://www.devkitpro.org/ devkitARM and libnds] are required to compile and use thdslib. It has been tested with devkitARM r23b, however libnds has gone through many changes. thdslib will compile with libnds-20070127 however the examples will not due to some missing functions. For this reason am providing the following archive with devkitARM r23b and a slightly modified libnds that can be used to compile thdslib and the examples.
| + | |
− | | + | |
− | '''Due to complaints I have removed my links to the sources.''' ~ will provide another solution shortly.
| + | |
− | | + | |
− | Windows users may replace the devkitARM directory with the one provided by the windows installer. OSX, cygwin users may use their respective devkitARM distributions.
| + | |
− | | + | |
− | ==Contacting==
| + | |
− | If you have any questions you may leave them on the [[Category_talk:LIBTHDS|talk page]], alternately #touhoudevs @ irc.efnet.net.
| + | |