#55880 - blacksun - Mon Oct 03, 2005 6:54 pm
I currently have 5 64x64 sprites that I want to load in my game. Only one sprite will be displayed at a time. I have it right now that depending on what mode the user has selected it will load a different sprite into memory so memory shouldnt be an issue. The problem is when I include the .c files that contain the data for the sprites.
I know this probably isnt the most efficient way to get the data in the game but I don't know a different way. As of now if I include 4 sprites, my sprite data will become corrupt. It works fine if I only include 3 of the sprites. I don't think it is overriding any memory. And I have tried just including the .c files in the make file but that didn't work for me. Probably because I was doing it wrong. I am using the gcc compiler to do this.
I know this probably isnt the most efficient way to get the data in the game but I don't know a different way. As of now if I include 4 sprites, my sprite data will become corrupt. It works fine if I only include 3 of the sprites. I don't think it is overriding any memory. And I have tried just including the .c files in the make file but that didn't work for me. Probably because I was doing it wrong. I am using the gcc compiler to do this.