GLBasic forum

Main forum => GLBasic - en => Topic started by: doimus on 2010-Mar-21

Title: Sprite scaling on iPhone?
Post by: doimus on 2010-Mar-21
I've got my retro game in the works which uses low res graphics. On PC/Mac I draw everything at native low res and then grab/stretch it to bigger resolution.

Now, since iPhone doesn't support grabsprite, what would be the best way to do this? Would be nice if it worked on the Wiz as well.

1) Use STRETCHSPRITE  to scale each sprite as it is drawn to the screen. This would complicate my code a bit, and would probably degrade the performance.

OR

2) Resize graphics manually to iPhone resolution, and then draw normally. This could be faster, but requires separate graphics for iPhone.

OR

3) Something else?
Title: Re: Sprite scaling on iPhone?
Post by: Marmor on 2010-Mar-21
make extra gfx for the iphone so you need no scaling in code and have moore fps if you have much sprites .