2
« on: February 23, 2018, 04:27:10 am »
Ive been using the following:
jo_sprite_add_image_pack("STG2", "000.TEX", JO_COLOR_Black);
At first, i received the error stating i needed to increase the max file size in the image pack, which i did in the makefile by explicitly defining a max number.
I have 299 tga images in the same STG2 folder with 000.TEX as the first file which lists out all of the 299 .tga files which are listed in numerical order (1.tga, 2.tga, ..., 298.tga, 299.tga)
jo_sprite_add_image_pack is getting to about 52.tga before it states it cant find 53.tga. the error is consistent and seems as if the seek and reading of files gets lost along the way somehow after loading quite a few?
am i doing something wrong here? Maybe i am using this function in an in correct way overall by trying to load too many sprites and there is a better method to achieve the same results?
My original thought was that i would take a 320x240 tilemap image and split it into 16x16 tiles (300 of them) and load them into ram and then load the tilemap itself and draw, but it does not seem to be working as planned.
Any suggestions are welcome!