Posts: 3,288
Threads: 167
Joined: Nov 2001
Scale2x is used in most Gaming Console Emulators .
Exe and source: (I intentionally did not optimize the source so that the algo would be easier to understand)
http://qh2.qbtk.com/190-d
This thing would be well suited in converting sprites from 16 * 16 to 32 * 32. Or make your sprites/tiles 16*16 and scale2x it on load then you get less filesizes in your sprtes.
Enjoy!!!
Posts: 1,752
Threads: 21
Joined: Jun 2002
Posts: 773
Threads: 71
Joined: Mar 2002
I doubt I'll ever get to see you upgrading RelLib with sprite scaling routine I so need much to finish LONG in QB?
Thought so.
Posts: 1,774
Threads: 62
Joined: Aug 2003
Lachie, have you done anything with FreeBasic yet?
Posts: 354
Threads: 11
Joined: May 2002
Quote:I doubt I'll ever get to see you upgrading RelLib with sprite scaling routine I so need much to finish LONG in QB?
Thought so.
Why don't you just stick on a scaling routine from eg. CosmoX and use that?
In a world without walls and doors, who needs Windows and Gates?
Posts: 773
Threads: 71
Joined: Mar 2002
Uhm, no.
Wait, I did compiled something done by someone else. And it did do something.
Uh, I unpacked it on my harddisk. What do you want? BLOOD?!!
Posts: 1,774
Threads: 62
Joined: Aug 2003
Yes, and guts... a new game with lots of blood & guts! :lol:
Posts: 3,288
Threads: 167
Joined: Nov 2001
Posts: 3,288
Threads: 167
Joined: Nov 2001
Actually, the scal2x algo is as fast as it could get. I intentionally did not optimize it to be more understandable. It's so fast it's used in realtime scaling in most emus including zsnes. :*)