GLBasic forum

Main forum => GLBasic - en => Topic started by: MrPlow on 2014-Oct-21

Title: iOS query
Post by: MrPlow on 2014-Oct-21
Hi All

Will iOS support createscreen (virtual screen with stretchsprite)?
If not, is there an alternative?

Title: Re: iOS query
Post by: quangdx on 2015-Jan-17
Yes iOS does indeed support CREATESCREEN and allows you to use STRETCHSPRITE on the virtualscreen.
As an alternative you can pre stretch everything that you draw.
So instead of drawing a 16x16 square on to the screen at 20,10 co-ordinates, you calculate how much to scale it to the equivalent of the device and a square that size.
For example for a screen that is double resolution in pixels than the game you are making, you draw a 32x32 square instead at 40x20 co-ordinates.
Title: Re: iOS query
Post by: erico on 2015-Jan-17
polyvectors could also be an alternative to this.