tonc 1.4 official release

The files have need downloadable for a while now as a preview, but I finally put the text up on the main site as well so I guess that makes it official. Tonc is now at version 1.4. As mentioned before, the main new thing is TTE, a system for text for all occasions. I've also used grit in some of the advanced demos, so if you want to see how you can do advanced work with it, check out the mode 7 demos and the tte demo.

This will be the last version of Tonc. It's really gone on long enough now.

Files and linkies :

Right! Now what …

5 thoughts on “tonc 1.4 official release

  1. How about a clearly written and explained tutorial on writing platform games? ;)

  2. I used tonc lib without any problem so far and it is great. But today I just tryed to move to cpp and the lib is giving me a linking error.

    the error is in the file "tonc_surface.h" at line 361:

    INLINE void srf_set_ptr(TSurface *srf, const void *ptr)
    srf->data= (void*)ptr;

    I am getting a "e:\Project\isoGraph\..\..\tonc\code\tonclib\include\tonc_surface.h|361|error: invalid conversion from 'void*' to 'u8*" error, shouldn't the cast be:

    srf->data= (u8*)ptr: ?

  3. You're right, that should have been (u8*), thank you for mentioning this. It should be fixed now.

  4. Hi Cearn i got this error when i try to compile the example tmr_demo:

    arm-eabi-gcc -MM -I../../tonclib/include -O2 -Wall -fno-strict-aliasing -mthumb- interwork -mthumb -c tmr_demo.c berk.c > tmr_demo.d
    arm-eabi-gcc -I../../tonclib/include -O2 -Wall -fno-strict-aliasing -mthumb-inte rwork -mthumb -c tmr_demo.c -o tmr_demo.o
    arm-eabi-gcc -I../../tonclib/include -O2 -Wall -fno-strict-aliasing -mthumb-inte rwork -mthumb -c berk.c -o berk.o
    berk.c:7: error: expected ':', ',', ';', '}' or '__attribute__' before '*' token
    berk.c:226: warning: excess elements in struct initializer
    berk.c:226: warning: (near initialization for 'berkFont')
    berk.c:227: warning: excess elements in struct initializer
    berk.c:227: warning: (near initialization for 'berkFont')
    berk.c:227: error: expected '}' before numeric constant
    make: *** [berk.o] Error 1

    At the file 'berk.c' i changed this things:

    const u8 *widths;
    const u8 *heights;

    for this:

    const unsigned char *widths;
    const unsigned char *heights;

    An you forgot a ',' at the line 225 after the second '0'

    After that all worked fine :).

Leave a Reply

Your email address will not be published. Required fields are marked *