EXAMPLE SOURCE CODE



 Timer Based Movement with Vsync Tweening

By: Kevin Picone Added: August 23rd, 2009

Category: All, Fps, Timing


The aim of this example is to demonstrate an approach for decoupling your games logic from the host computers drawing performance, which is commonly referred to as timer based movement.

However in this approach, we're going to keep our frame based approach also. By doing this, our game logic is the virtually the same as what it would be, expect we're selectively executing the logic, and trying to tween (interpolate) the graphical output between logic refreshes.

Related Articles
Timer Based Movement
Vsync / Frame Rate Scaling
Handling Multiple Animations using Timer()
Consistent Game Timing

Download: Login to Download





Release Type: The source code & tutorials found on this site are released as license ware for PlayBasic Users. No Person or Company may redistribute any file (tutorial / source code or media files) from this site, without explicit written permission.


 

 
     
 
       

(c) Copyright 2002 / 2024 Kevin Picone , UnderwareDesign.com  - Privacy Policy   Site: V0.99a [Alpha]