Home > Archive > Smartphone Developer Forum > December 2005 > New Game!! & question about porting to QVGA on WM5
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
New Game!! & question about porting to QVGA on WM5
|
|
| Daniel Davis 2005-12-14, 4:02 am |
| I just released my first Smartphone game for WM 2002/2003. I'm so pleased
with how it turned out and I hope you all will at least check out the free
trial at http://www.hailfirestudios.com. I've only sold 2 copies so far! Come
on people, tuition is only getting more expensive.
My question is about WM5. Not two w s after releasing my game on handango,
Cingular released their 2125, a rebranding of the HTC Faraday with a new
hi-res 240x320 QVGA screen. Well my game uses the GAPI to write directly to
video memory and everything is based around a 176x220 screen. So, my
questions:
1. Can you change the resolution in WM5 to 176x220 on launch, then flip back
to 240x320 when the user quits the game? That's the easiest solution for me
to support WM5.
2. If I need to support QVGA with new artwork/code, can I detect the
device's resolution during install so only the necessary images are loaded on
the device? Otherwise I'll have to install two copies of each art asset and
decide which one to load in code.
Any advice would be helpful. Thanks.
Daniel Davis
HailFire Studios
www.hailfirestudios.com
| |
|
| Daniel Davis wrote:
> 1. Can you change the resolution in WM5 to 176x220 on launch, then
flip back
> to 240x320 when the user quits the game? That's the easiest solution for me
> to support WM5.
No sorry, LCDs only support one resolution. If you were using GDI you
could use StreachBlt() although it doesn't look so good, and 240x320
isn't 1.4 times 176x220 (it would be 240*310 if it was)
> 2. If I need to support QVGA with new artwork/code, can I detect the
> device's resolution during install so only the necessary images are loaded on
> the device? Otherwise I'll have to install two copies of each art asset and
> decide which one to load in code.
yes you can, just write a setup.dll, there is an example in the SDK
samples directory
riki
Perhaps the most valuable result of all education is the ability to make
yourself do the thing you have to do, when it ought to be done, whether
you like it or not. This is the first lesson to be learned.--Thomas
Henry Huxley
By Night:
ThemeChanger for Smartphone : http://homepages.inspire.net.nz/~gambit/
AbstractStart for Smartphone :
http://homepages.inspire.net.nz/~gambit/AbstractStart/
Latest Betas have WM5 layout and speed dial support
|
|
|
|
|