Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(+2)

These are nice. Reminds me of the old magazine-listing days!

Btw, there's a memory corruption bug in the platformer tutorial. On my mac it was causing all rendering to fail with "Invalid renderer" messages. In map.c:

    static SDL_Texture *tiles[MAX_TILES];

should read:

    static SDL_Texture *tiles[MAX_TILES+1];

(+3)

Thanks! Nice spot. I've updated the PPP tutorial to fix this. The code is now:

defs.h:

#define MAX_TILES              8

map.c:

static void loadTiles(void) 
{     
    int i;     
    char filename[MAX_FILENAME_LENGTH];      
    for (i = 1 ; i < MAX_TILES ; i++)
    {
        sprintf(filename, "gfx/tile%d.png", i);          
        tiles[i] = loadTexture(filename);     
    } 
}

That should all work now (unless I've somehow introduced another bug somehow..!)