Banner
Views: 858,657,235
Time:
9 users online: blaze800000, dogemaster, Gregor, kamekku14,  KevinM, KitikuSa, Koop the Koopa, Kusrry, Nint - Guests: 50 - Bots: 83 Users: 47,452 (2,247 active)
Latest: PixelUwU
Tip: Don't put a coin over a question block. It will create an invisible solid block above the ? block if the block is hit first.Not logged in.
SA-1 Graphics Rotate/Scale Routine
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - SA-1 Graphics Rotate/Scale Routine
Pages: « 1 »
Well, on past I have been working on a graphics rotation/scaling method with SA-1 but I gave up because I wasn't getting able to fix the interpolation plus the terrible slowdown the code is.

But I finally got rid of the interpolation issues (by just swaping src and dest pointers), but I still can't get rid of the slowdown, so I decided to "release" the code, but I would love if we could optimize it more to at least don't slowdown in snes9x and still have a little time to process some sprites.

Of course, it's possible to simply put the code on parallel/background mode and work on a frame skip system, while SA-1 is idle.

Anyway, here is the code: http://bin.smwcentral.net/u/8251/rotate.zip.

It includes a IPS with a sample level and source code (it's on uberASM/code).

You can rotate the egg with left/right keys and scale with up and down keys. If you press Y, the rotation/scale will be 4x faster.

There's a little risk of freezing the level. That's normal when SA-1 gets too much slowdown.

The GFX file is egg.bin, on format 4BPP Linear. If you want to use another GFX, you can rip it with SnesGFX. It must be exactly a 32x32 image.

--------------------
https://www.youtube.com/watch?v=3xkRkaXPN_A
---
GitHub - Twitter - YouTube - Blog - SnesLab Discord
Pages: « 1 »
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - SA-1 Graphics Rotate/Scale Routine

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2020 - SMW Central
Legal Information - Privacy Policy - Link To Us


Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Super Mario Bros. X Community
  • ROMhacking.net
  • Mario Fan Games Galaxy