Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - jrico

#1
First of all thanks for your response.

I thought of that solution that you tells me but my background image is very difficult to use with that solution (the borders of my background images are not integrable with any other background image). I only want to rescale distorsioned background image (the all other game images will be rescaled whith same X and Y scale). It´s not a problem that it will be distorsioned because it´s an image about space.

If any one knows how to make that, please tell me...

Thanks for all ampos!
#2
Hi all!

First of all sorry about my english!

Long time ago i were programming an iPhone game using glBasic. Actually i´m trying to publish it on Android Market. I have been making some changes to allow the game to adapt all resolutions (when i made it for iPhone it only had one possible resolution). I get it working but i found one problem. On main game function finally all my sprites were rendered by function ROTOZOOMANIM. The problem is that on Android when i resize game for diferent resolutions the scale factor is diferent for X and Y. I have to scale all sprites for example 1.6 original size for X and 1.4 for Y. The function i use ROTOZOOMANIM not allows to scale diferent factors for X and Y it only uses one factor, ¿How can i do it?

Another problem is the integration for Openfeint. For iPhone i have some functions that call C functions o Openfeint API, ¿how can i do it for Android? Here is the code i have:
Code (glbasic) Select
CONSTANT LANDSCAPE = 1
CONSTANT PORTRAIT = 2

?IFDEF IPHONE
IMPORT "C" void GLB_OF_CreateOpenFeint(const char* ckey, const char* secret, const char* displayName, int mode)
IMPORT "C" void GLB_OF_ShowDashboard()
IMPORT "C" int GLB_OF_isOnline()
IMPORT "C" void GLB_OF_Achive(const char* achivementID)
IMPORT "C" void GLB_OF_HighScore(const char* leadID, long score)
?ELSE
FUNCTION GLB_OF_CreateOpenFeint: key$, secret$, displayName$, mode
ENDFUNCTION

FUNCTION GLB_OF_ShowDashboard:
ENDFUNCTION

FUNCTION GLB_OF_isOnline%:
RETURN FALSE
ENDFUNCTION

FUNCTION GLB_OF_Achive: achievementID$
ENDFUNCTION

FUNCTION GLB_OF_HighScore: leadID$, score%
ENDFUNCTION
?ENDIF

FUNCTION OpenFeintDummy:

ENDFUNCTION