|
CT60 and related things BBS
Re: Gem Panic Released |
Posted by: deez
|
Jan,10.2005-00:10
|
The idea is to keep graphcial and logical updates seperated.
Logical tasks (enemy/missile movements etc) should be updated at a fixed rate on all systems and not frame-rate dependent.
The most systemfriendly way of doing this is as far as I know to read Timer-C (defaults to 200Hz) every frame to get the number of ticks since last frame and then adjust enemy movements accordingly.
For example:
Lets say Timer-C is running at 200Hz and we want enemy ships to move 1 pixel every Timer-C tick.
If you get 5 ticks between two of your (graphical) frames that means Timer-C has been updated five times and you need to move the enemy 5 pixels to keep up.
Hope this helps, if not just let us know and I'll try and explain it again :)
Fredrik.
|
[All messages in this thread] [Start new thread]
Topic
|
Posted by
|
Date
|
Gem Panic Released
|
Baldrick
|
Jan,06.2005-22:53
|
Re: Gem Panic Released
|
MacFalcon
|
Jan,07.2005-18:01
|
Re: Gem Panic Released
|
CiH
|
Jan,08.2005-00:07
|
Re: Gem Panic Released
|
MacFalcon
|
Jan,08.2005-20:52
|
Re: Gem Panic Released
|
deez
|
Jan,09.2005-15:10
|
Re: Gem Panic Released
|
Baldrick
|
Jan,09.2005-22:04
|
Re: Gem Panic Released
|
deez
|
Jan,10.2005-00:10
|
Re: Gem Panic Released
|
Baldrick
|
Jan,11.2005-03:20
|
Re: Gem Panic Released
|
Baldrick
|
Jan,11.2005-20:01
|
Re: Gem Panic Released
|
brabanderrr
|
Jan,19.2005-19:52
|
What's the anti-troll code? That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
|