This site is no longer active and is available for archival purposes only. Registration and login is disabled.

How can I use settimer in my game?


How can I use settimer in my game?

Postby xpfde » Apr 30, 2003 @ 9:36am

I want to use settimer in my game,but there is no windows and message loop in program,what shuold I do?
xpfde
pm Member
 
Posts: 10
Joined: Apr 19, 2003 @ 11:45am


Postby xpfde » May 1, 2003 @ 5:10am

anybody can help me?THANKS
xpfde
pm Member
 
Posts: 10
Joined: Apr 19, 2003 @ 11:45am


Postby fzammetti » May 1, 2003 @ 6:32am

Look at the source file game.h in the PocketFrog/src/framework directory... a few lines from the top you'll see a message map... you should be able to pretty easily add a handler for the timer there.

However, I would think about whether you really need to use a timer or not... part of the point of PF is that everything you do is handled in your Gameloop()... what are you doing that you think that might not suffice?
...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby xpfde » May 2, 2003 @ 4:07am

xpfde
pm Member
 
Posts: 10
Joined: Apr 19, 2003 @ 11:45am


Postby fzammetti » May 2, 2003 @ 4:29am

...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby xpfde » May 5, 2003 @ 9:00am

xpfde
pm Member
 
Posts: 10
Joined: Apr 19, 2003 @ 11:45am


Return to PocketFrog & PocketHAL


Sort


Forum Description

SDKs for fast and robust device-independent access to Pocket PC display hardware.

Moderators:

sponge, Kzinti

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum