PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Getting started with PocketPC/Smartphone Development?

chuawenching · 21 Oct 2003, 11:10 UTC
Hi there,

I am pretty new to PocketPC/Smartphone world.

I want to develop a game one day on top of those devices but i willing to learn from the basics.

I want to walk before i can learn to fly.

So what kind of tools should i use? I believe many of you had created your own game engine on top of pocketpc right! So i hope this is the best place to ask.

Embedded Visual c++ 4.0 or .Net Compact Framework?

Is there a drawback on using .Net on pocket pc? Like performance issues?

When we develop a game in pocketpc, is it it uses the software render rather than hardware? Like our PC, we had super graphics card. So how does the hardware (graphics) for pocket pc?

I know if i am suppose to code on a Nokia 7210 j2me phone, i am limit to 65k of file size! Is there any issue on developing on a pocket pc or smartphone?

Can i develop a game on 1 pocket pc and runs the same program in smartphone? Not all pocketpc or smartphone had the same screen resolutions?

I think i really need to get started to learn how to write engines. Is there any tutorial that teach me step by step. Like learning directx for computers.

I seen a topic on 3d engine. Many 3d engines, but no $$$. Is that hard to create a 3d engine on top of pocket pc? I know it is complex on top of PC.

In PC, we can use binary space partition (bsp). Can we use the same thing on top of a pocket pc?

If i don't have a pocket pc, can i develop games on top of the PocketPC 2003 emulator? Is there any problem?

There is Pocketpc2002 and Pocketpc2003? What is the difference on developing on them?

Does most engines base on Gapi?

Is there any tips you can give me to help me started into games programming in PocketPc?

Thanks a lot.

Regards,
Chua Wen Ching :p
Firstly I should point out that MS smartphone development resources are tiny compared to PocketPC resources. Not many people are developing for the Smartphone yet. It does have a smaller screen size & no touch screen. Those are the main differences but processor is slower & less ram as well.

Some people write their own GAPI based engines others use PocketFrog or GapiDraw the 2 established toolkits you will find on this site.

For dev tools most people use embedded VC++ (a free download) or Visual C++ 6.

Currently all rendering is in software & with no floating point unit fixed point maths becomes essential.

No file size limit like you mention though you must remember the time to download from the web. Most games are from 1Mb to 5Mb (a guess)

PPC 2003 & 2002 are pretty similar. The newer version has some better connection software and a few tweeks.

Yes you can build one source for PPC & Smartphone but there are obvious differences.

Do you want to write a 3D game? or 2D?
chuawenching · 21 Oct 2003, 13:43 UTC
Thanks for the reply.

I want to learn to write 2d games and then to 3d games when my 2d is strong enough.

Well, what if i want to learn both? Hehe! Anyway what is your recommendation?

Oh ya, i never used embedded tools before. Isn't embedded tools had some relation with visual c++ 6.0? Or embedded visual c++ 4.0 is a standalone itself and works as a compiler and editor?

I don't think visual c++ 6.0 can compile any pocket pc app.

And why does ppl use ARM Assembler for?

Is there any 2d or 3d games source code or even engines souce code, which i can look into the codes.

Not mean to copy, but to see how easy or complex to create one.

Pocketfrog, is it good? Do you have any link? I can't see any game screenshots with pocketfrog.

Anyway just wonder, can i download those games demo and run on top of a ppc emulator rather than real pocket pc.

I don't have money to buy one. Hope the emulator can work.

If i develop on top of a emulator will there be any problem migrating to the real phone? I know j2me phones had some issues on this.

So the conclusion is, most pocketpc game developers uses embedded visual c++ to do games. Is there any basic tutorial on embedded visual c++ (good ones) other than msdn?

I am total lost in google and i really no idea how to start learning to develop something in pocketpc with embedded 4.0. The tutorials in google are too advance for a pocketpc beginner like me.

I think in order to develop an app in pocketpc, i need to have good c++ knowledge and MFC. I seen some google site mention about Microsoft Foundation Classes. Can't we use Win32 C++?

Lastly, what is wince, wince.net? Aren't they the same with pocketpc os? Can anyone tell me the different?

Thanks again.
It's easy to develop using VC6++ to save having to use devices/emulators. I do this & then use EVC3++ to do an actual build for device once a week to check that it works. Both PocketFrog (which I use & GapiDraw allow PC based dev to save time.

PocketFrog is 100% source & 100% free. GapiDraw uses a dll and will cost if you are a serious developer otherwise free. Both have forums here. See www.pocketfrog.com and www.gapidraw.com

Screenshot from PocketFrog? here's a shot from my soon to be finished game: .Image

Difference between WinCE & PocketPC etc. WindowsCE is the underlying operating system & PocketPC is a presentation layer onto that.

Why assembler, cause you can get better performance over compiled C

Get evc++ installed & then try PF or GD samples
Conan do you make money out of your games, as i keep getting asked to write mobile apps(usually for a share of the profits) and i am put off as 100% of nothing aint worth time.

sorry if you think i am being forward
I am happy with the returns because I have a real job daytime and currently write games in my spare time only. There is a market but much smaller than on PC. Having said that I have only written one PocketPC game and so far it has done much better than anything previously published due to being shareware. With real published titles you only get a tiny bit of the sale price.

I get enough to allow me to buy all my dev kit, pay for 3d graphics & additional coding and still have some left. My own guess is that I could only make about $30,000 per annum if I was full time & that's way below what I currently make so I won't jump until I have paid off the home.
Thanks for that.
Most the apps im getting asked to write are business apps, so a little boring but i guess the return may be higher, Thanks again Conan it looks like it may actually be worth me taking the risk
chuawenching · 21 Oct 2003, 15:20 UTC
Wow.. okay, that is 1 screenshot i seen from pocketfrog.

So from pocketfrog it is a good start for me to develop 3d games?

Hmm.. ok, you say assembler is better than compiled C?

What does that mean? We using embedded vc++ right?

And yeah i also not very understand with:
It's easy to develop using VC6++ to save having to use devices/emulators. I do this & then use EVC3++ to do an actual build for device once a week to check that it works.
--> It means you assume it works on the emulator? Wow, you code pocketpc alot?

Can you show me a sample hello world app in embedded visual c++ 4.0 and a normal c++ app? I want to see whether there is syntax difference.

And it still use #include <iostream> in pocketpc?

Thanks anyway.
Download eMbedded Visual C++ and start a new project, any name, and it should give you the option to generate a simple Hello World app for you. Then you can compare.
No, PocketFrog is a 2D toolkit. Sorry for confusing you. The 3D you see in that screenshot is not part of PocketFrog.

ASM is not better than C++, just faster. People usually only use ASM for small parts of their game.

Not using emulator ever. I have a version of my game which builds for PC and for PocketPC. Only thinks like paths & strings are different ( ascii & unicode ).

I don't use eVC 4 so can;t give a sample. If you download one of the toolkits mentioned you get samples included.
chuawenching · 21 Oct 2003, 15:47 UTC
Hi there. Thanks a lot.

Conan, i saw your pocketfrog tutorial. Do you have the source code for that tutorials?

I only can find keyboard.zip.

Yeah i will start with 2d first. Maybe see into pocketfrog. 3d later on!

Thanks.
Conan wrote:
ASM is not better than C++, just faster.


Assembly language is not automatically faster, it only gives more freedom to optimize.
It's obviously better if you have a device. You can develop on PC, and even try testing in the emulator, but of course without testing on a device you can never be sure how it will work. For example, you will find speed much slower (particularly graphics and floating point), and events sent can be different (e.g. mouse events).

First recommendation is to get a development environment. eVC++3 is free and works. If you want to try something else, go ahead, but I can't say whether it works. eVC++3 is like a stripped down version of VS6 that compiles for Pocket PC devices.

You'll also want VS6 to compile on PC. That is assuming you are making your game portable to both platforms, even if only for development. Again, you can try something other than VS6 but I can't say how smoothly it works.

OK, so now you have your compilers installed and patched, and your SDKs installed. Go get GapiDraw and PocketFrog, the two Pocket PC game programming toolkits. Install both. Take a look at both. Get all their sample programs compiling for both PC and PPC. Take a look at the source code for all the samples, both to familiarize yourself with this kind of source code, and to decide which toolkit you like.

Also, read the documentation for both toolkits, and their websites. Also, read these forums. There is a lot of information here.

Use one of those two toolkits for your first game. Unless you have a terminal condition, you will have plenty of time to write an engine for your second game. Make a simple 2D game. Don't try anything fancy like 3D. You should never try to do too many new things at once. You are already developing for a device you have never developed before, and do not own, so do not complicate things even more. Otherwise, you will never finish your game, I am serious. I repeat, unless you are dying, you have plenty of time to make your dream game in a few years, when you have more experience.

At this point, you have a development environment, two toolkits, with samples compiled, and source code and documentation you are familiar with. Go get more source code. There is source code available for a few games. One is called ZRaider, and there's another whose name I cannot remember (starts with N?). Look around the forums (and google) and find them. Learn from them, without copying.

Forget VB and assembly. You will be using C++, maybe with fragments of C. If you aren't relatively skilled with those languages, find a good book (not a bad one) and brush it up. You can't expect to be a poet or novellist in a foreign language; neither should you expect to be a decent game programmer without a commanding knowledge of the language in which you are writing code.

Don't be too focused on the graphics, just because that's all you see on the game screen. There is much more to a game than graphics, which are only a small part of the program. A lot of game programming is management of data structures (e.g. BSP trees, or even simpler ones). You will need file handling for things like loading your images or saving your games. Remapping buttons. Sound. A lot of things like that. Toolkits will help you somewhat, but games necessarily require their own code for those sorts of things. What I'm saying is that if you're not prepared to spend time working on something "mundane" like serializing/deserializing your data structures to a file, instead of graphics, then you will not have saved games. So if all you want to do is graphics programming, either find a partner or just make demos.

Anyways I hope this helps. We should probably collect all of this into a sticky "how to get started" topic.
mlepage wrote:
It's obviously better if you have a device. You can develop on PC, and even try testing in the emulator, but of course without testing on a device you can never be sure how it will work. For example, you will find speed much slower (particularly graphics and floating point), and events sent can be different (e.g. mouse events).


I cannot stress this enough. I have a project that compiles without errors or warnings in both VC6 and eVC. It runs fine on the PC and in an emulator. But on my actual Pocket PC it does nothing. Heed this! :?

JJB
chuawenching · 22 Oct 2003, 01:54 UTC
Thanks a lot.

Ok will focus on couple of areas

2D - forget 3d for now

learn from samples

use evc++ 4.0 sp2 - already install yesterday (so alike like visual studio 6.0, just they had pocketpc projects)

use c++ (i am learning from Thinking in c++)

use pocketfrog and gapidraw. I will learn from basics. But pocketfrog cannot be install. It just extracts into a folder. It seems i need to run from source code -> compiles -> execute! Can i just run exe?

Yeah i develop games on PC before.. 3d games with existing 3d engine. Games programming is not about graphics and there are many more.

Am i suppose to pickup MFC when i learn c++?

Really sounds scard, as i really had no pocket pc to test on. Not sure who has, i see i can borrow one.

Just wonder, since there is evc++ 4.0 sp2, why many of you still use evc++3.0?

That is assuming you are making your game portable to both platforms,
--> You wrote this, and i am really confuse.

Do you mean i create a game called Doom3 on PC and i also at the same time writing one for PocketPC? Huh?
Same game but different devices?

You also mention this:
You will be using C++, maybe with fragments of C
--> Where can i use fragments of C in pocketpc programming? Just say i use gapidraw or pocketfrog? Any tips?

You mention this:
Look around the forums (and google)
--> Yeah i know, but can you tell me what keywords should i use to get me started. I use keywords like "Embedded Visual C++ tutorial" and he gave me nothing much tutorials.

BSP trees
--> Wow, pocketpc also can use BSP. I heard there is a game called Doom or Quake on PocketPC right? I am wonder isn't bsp concept hard to implement on a device like PocketPC.

Okay i want to develop a game like First Person Shooter on pocketpc, i am wondering in pocketpc there is no mouse. Then how to play it? What is the standards keys use?

I do wonder, you mention about the game download is aroun 1 to 5 MB. In a game, there are a lot of media files (sounds, 3d meshes, 2d graphics), how can fit in 5 MB.

Is there any AI or physics engines that is working on top of PocketPC? I just want to know is there such thing exists.

Assembly language is not automatically faster, it only gives more freedom to optimize.
--> I will use C++ here. But in what way have more freedom. I think c++ also can handle memory using pointers right? So why is it different?

Thanks again.
In regards to ppc game programming. I can suggest 3 options :

http://www.droneship.com (PocketFROG)
http://www.gapidraw.com (GapiDraw)

and

http://www.jharbour.com (PocketPC game programming book)

Hope this helps.
But in what way have more freedom.
If you don't know C++, forget assembler for the time being. To answer the question, you have more freedom because you can use the full range of instructions, which C++ simply doesn't cater for (and/or the compiler doesn't realise it can use).
And if you wish you can write a complete Pocket PC program in C only. Just thought I'd throw that in.

JJB
chuawenching · 22 Oct 2003, 18:47 UTC
Thanks.
chuawenching wrote:
use c++ (i am learning from Thinking in c++)


The Eckel book? It is supposed to be good.


use pocketfrog and gapidraw. I will learn from basics. But pocketfrog cannot be install. It just extracts into a folder. It seems i need to run from source code -> compiles -> execute! Can i just run exe?


I found it more difficult to install PocketFrog, complicated by the fact that there are a few versions (some more official and some less official) floating around, and samples which seem to work on some versions but not others. GapiDraw works better out of the box. But I would suggest installing both, getting both running, and taking a look at both.


Yeah i develop games on PC before.. 3d games with existing 3d engine. Games programming is not about graphics and there are many more.


What computer programming languages do you know?


Am i suppose to pickup MFC when i learn c++?


Forget MFC. Don't use it. Forget it exists.


Really sounds scard, as i really had no pocket pc to test on. Not sure who has, i see i can borrow one.


Borrow one, or buy a cheap one, or live with PC development and an emulator.


Just wonder, since there is evc++ 4.0 sp2, why many of you still use evc++3.0?


Not sure. Because that's what I have I guess. It works and I have no compelling reason to upgrade at this time.


That is assuming you are making your game portable to both platforms,
--> You wrote this, and i am really confuse.

Do you mean i create a game called Doom3 on PC and i also at the same time writing one for PocketPC? Huh?
Same game but different devices?


Exactly. If you're really good, you can write code that can compile on many platforms. Windows, Mac, Unix, Palm, Symbian, whatever. It takes much more effort. It's not so much effort to write code that works on both PC and Pocket PC, but it is some effort. I would suggest you expend that effort, develop on PC, and test on Pocket PC.


You also mention this:
You will be using C++, maybe with fragments of C
--> Where can i use fragments of C in pocketpc programming? Just say i use gapidraw or pocketfrog? Any tips?


My tip is to learn C++, and use C++. But there are times when you need a little C. Say you have a library that is C only. You can still use it from your C++ code.


You mention this:
Look around the forums (and google)
--> Yeah i know, but can you tell me what keywords should i use to get me started. I use keywords like "Embedded Visual C++ tutorial" and he gave me nothing much tutorials.



BSP trees
--> Wow, pocketpc also can use BSP. I heard there is a game called Doom or Quake on PocketPC right? I am wonder isn't bsp concept hard to implement on a device like PocketPC.


BSP trees are just a data structure. You can make one on any computer. The only thing about Pocket PC is that it is not as powerful a computer.


Okay i want to develop a game like First Person Shooter on pocketpc, i am wondering in pocketpc there is no mouse. Then how to play it? What is the standards keys use?


A 2D first person shooter?

If you had a Pocket PC, I'd suggest you install PocketQuake and see how it handles input and movement. But you don't, and I don't know if it runs in the emulator.


I do wonder, you mention about the game download is aroun 1 to 5 MB. In a game, there are a lot of media files (sounds, 3d meshes, 2d graphics), how can fit in 5 MB.


That's your job, to make it fit.


Is there any AI or physics engines that is working on top of PocketPC? I just want to know is there such thing exists.


Well, there's my engine, but it isn't quite finished and I'm not selling it yet. Maybe when it's done. There are probably others but I wouldn't know.


Assembly language is not automatically faster, it only gives more freedom to optimize.
--> I will use C++ here. But in what way have more freedom. I think c++ also can handle memory using pointers right? So why is it different?


C++ is just a higher level language. It has libraries for you to use. It supports templates, objects, and lots of nifty stuff. If you have a modern enough compiler (eVC4 but not eVC3) you also have exceptions, RTTI, and even more nifty stuff.

C++ can be hard, but then so can assembly. My advice is to forget assembly and learn C++ well. If you need speed, you can write really efficient C++, and if that isn't enough, you are still free to write a bit of assembly.

But trust me, you won't. Right now you are worried about the speed of a game that isn't even written. You have no code to optimize. Get out there and write some code first, then see if it isn't fast enough.
chuawenching · 23 Oct 2003, 02:09 UTC
Thanks mlepage a lot.

It has been a great help. Yeah i am learning c++ and testing out embedded vc++.

I develop a game in c# with tv3d engine and i won 3rd in a game competition hold by British Council Malaysia and University of Abertay. I did a 3d RPS. Why we lost? Haha! Well, only 75% finish. Over ambitious at the start of the project. I had learn my lessons and won't repeat it in pocket pc development.

I know c#, java, C, basic C++ (refreshing and learning advance), cobol, vb6, vb.net, and hmm.. can't remember. Anyway i still a student that is my programming experience is not there. Haha!

But i will follow your advice, c++ all the way.

Thanks.