Scaling iPhone game for Wiz

Previous topic - Next topic

kaotiklabs

Hi, I´m trying to scale one of my games for iPhone (480x320) to the Wiz resolution (320x240) using this function:

Code (glbasic) Select

//=============================================================================
FUNCTION ScaleScreen:
//=============================================================================

//come back to real screen
USESCREEN -1
STRETCHSPRITE 1500, 0, 0, screenx, screeny

SHOWSCREEN

USESCREEN 0
CLEARSCREEN

ENDFUNCTION


I´m using scalescreen instead of the usual showscreen.
this code is working for scaling on pc but on wiz the image is shown once and remains freezed while the game still runs in the backend.

Where´s the problem?
Vote Cthulhu! Because the stars are right!!!!
Ia Ia Cthulhu F' tang!

Kitty Hello

Very strange. Please make a working mini example for that so I can try. It should really work.

I don't think it's an very efficient way to do it, though. The performance will likely drop to 40 FPS.

kaotiklabs

#2
Here you got the mini example with the problem.

As you would see is scaling fine on pc but on wiz the image is freezed.

I´m also open to any other sugestions.

[attachment deleted by admin]
Vote Cthulhu! Because the stars are right!!!!
Ia Ia Cthulhu F' tang!

Kitty Hello

CREARSCREEN was the problem. I fixed it for the next update.

kaotiklabs

Vote Cthulhu! Because the stars are right!!!!
Ia Ia Cthulhu F' tang!

kaotiklabs

and what about other scaling methods?

As you said, with this method the framerate is a pain.
Vote Cthulhu! Because the stars are right!!!!
Ia Ia Cthulhu F' tang!

Kitty Hello

Make the game run on 320x240 and fill the extra space on iPhone with valuable data. That's how I do it.