HuC explanation
explanation of forks
compatibility / changes for both versions
#include(tiles, "tiles.pcx", 1, 16); load_vram(0x1400, tiles + (1 << 6), 64);
#INCBIN(level1, "level1.fmp");
It's exactly as if you had wrote
const char level1[] = { <stuff inside level1.fmp> };
#incbin(level1, "level1.fmp") /* 256x256 */ #incbin(level2, "level2.fmp") /* 256x256 */ #incbin(level3, "level3.fmp") /* 256x256 */ #incbin(level4, "level4.fmp") /* 256x256 */ const int big_map[] = { /* width & height of all the maps * put together */ 512, 512, /* the following lines declare all * the small maps, one line per map : * * the two first values are the top/left * coordinates of the small map inside * the big map, the two followings values * are bottom/right coordinates (inclusive), * and the two last values are the map * address in ROM */ 0, 0, 255, 255, bank(level1), level1, 256, 0, 511, 255, bank(level2), level2, 0, 256, 255, 511, bank(level3), level3, 256, 256, 511, 511, bank(level4), level4, /* -1 closes the table */ -1 };