12-02-2022, 06:36 PM
Hi!
Of course it's possible, but you have to coordinate the scaling of background and sprites.
For example, you shrink the background to x0.5 and have sprite 0 at coordinates x=20, y=30 you must do:
If you want a true NeoGeo-like experience, keep in mind that the NeoGeo can only shrink sprites, not enlarge. Artists drew the graphics at full size and the zooming effect is achieved by shrinking. Tilengine doesn't have this limitation, you can upscale too.
Of course it's possible, but you have to coordinate the scaling of background and sprites.
- Background scaling is done with TLN_SetLayerScaling() and scales from top-left corner.
- Sprites are scaled with TLN_SetSpriteScaling()
For example, you shrink the background to x0.5 and have sprite 0 at coordinates x=20, y=30 you must do:
Code:
TLN_SetSpritePosition(0, 20*0.5f, 30*0.5f);
TLN_SetSpriteScaling(0, 0.5f, 0.5f);
If you want a true NeoGeo-like experience, keep in mind that the NeoGeo can only shrink sprites, not enlarge. Artists drew the graphics at full size and the zooming effect is achieved by shrinking. Tilengine doesn't have this limitation, you can upscale too.