Hi all,
I am looking at making Nightmare Park for Android. Essentially I have already made it for Windows Mobile 5 (please see TheRealEasterBunny) and just need to convert it.
I have no problem with coding in Java for popping graphics on the screen and moving them around but am just trying to get my head around how best to start the approach of dealing with the different screen sizes on the various Android enabled gadgets out there and how to best code the app to prevent grief and and prevent 'fighting against the flow' of the SDK.
Essentially the game runs as if it were on an old "green screen" text screen with 40x25 characters on screen. I have created a "Character set" of 255 GIF files to hold the "Commodore PET character set" and each GIF is 8x8 pixels, so, given the "text screen size" then equates to 320x200 pixels in "old school screen size". However all is different with Android as it deals with screen densities amongst other things and things are not just "pixel straight forward" anymore.
I am happy to let the Andoid OS scale up from this 320x200 pixel formula (and stretch in any direction it sees fit to "fit to screen") so to use the whole screen. I just need to know what config I need in my config files to allow this (if its possible).
I have checked out information about dp, dpi, etc at Supporting Multiple Screens | Android Developers and am thinking if I could let my app think it has a screen of 320x200 pixels and then let the Android know via the config files of the app to "scale up as it sees fit" to the size of the actual screen, then this would be great.
If this can be done, does anyone know the best way of approaching it or configuring the app config files with the correct parameters?
Many thanks and apologies for the long post. Once I have the best method of applying the GIFs to fit full screen (as I say, stretching is not a problem), I can get cracking on porting the app.
Steve.
I am looking at making Nightmare Park for Android. Essentially I have already made it for Windows Mobile 5 (please see TheRealEasterBunny) and just need to convert it.
I have no problem with coding in Java for popping graphics on the screen and moving them around but am just trying to get my head around how best to start the approach of dealing with the different screen sizes on the various Android enabled gadgets out there and how to best code the app to prevent grief and and prevent 'fighting against the flow' of the SDK.
Essentially the game runs as if it were on an old "green screen" text screen with 40x25 characters on screen. I have created a "Character set" of 255 GIF files to hold the "Commodore PET character set" and each GIF is 8x8 pixels, so, given the "text screen size" then equates to 320x200 pixels in "old school screen size". However all is different with Android as it deals with screen densities amongst other things and things are not just "pixel straight forward" anymore.
I am happy to let the Andoid OS scale up from this 320x200 pixel formula (and stretch in any direction it sees fit to "fit to screen") so to use the whole screen. I just need to know what config I need in my config files to allow this (if its possible).
I have checked out information about dp, dpi, etc at Supporting Multiple Screens | Android Developers and am thinking if I could let my app think it has a screen of 320x200 pixels and then let the Android know via the config files of the app to "scale up as it sees fit" to the size of the actual screen, then this would be great.
If this can be done, does anyone know the best way of approaching it or configuring the app config files with the correct parameters?
Many thanks and apologies for the long post. Once I have the best method of applying the GIFs to fit full screen (as I say, stretching is not a problem), I can get cracking on porting the app.
Steve.