52Fermer54
hine62Le 12/10/2018 à 15:26
Not sure if this is what you are looking for...

I use this to shrink sprites:

void ZoomSprite(int baseSprite, int numSprite, int x, int y) { int i; for(i = 0; i < numSprite; i++) { SC234Put(VRAM_SHRINK_ADDR(baseSprite + i), VRAM_SHRINK(x, y)); } }
baseSprite is the saved address of the first line sprite. numSprite is how many line sprites are linked together. x is the horizontal shrink factor (0-16). y is the vertical shrink factor (0-255). I still need to figure out the math, but you have to divide the y shrink by the % of the x shrink. i.e. x = 8 (shrink by half) y = about 128 (approx. half of 255)

You may want to look up shrinking on the NeoGeo Dev website to understand more.