Como la megadrive tiene un máximo de sprites a dibujar, puedes tener un array de tamaño fijo con todos los sprites a "dibujar". Cada elemento de ese array sera una estructura con los valores x, y, tile, y algo mas que necesites, también añadele unos indices para crear una lista sobre ese array.
Cuando creas o borras un sprite del array modifica la lista según sea necesario, después a la hora de dibujar recorres esa lista y no el array creando los sprites correspondientes.
No es lo mismo tener diez años de experiencia, que tener un año de experiencia diez veces.
It is an undisputed truth that the Atari ST gets the best out of coders. No dedicated hardware, just the CPU and a frame buffer! Some call it Spartan, others name it Power Without The Price, and a select few say `challenge accepted'! --- by spkr from smfx
Marcadores