CodeBase - Timer Based Movement

Return to the CodeBase listing

Category: Core

Version: 1.0

0
0

Information

Uploaded: 8th May 2007 13:16

Modified: 1st Jan 1970 01:00

Author:  Code Dragon

Summary

Get timer based movement into your game super easy.

Full Description

Call Tbm_init() with the desired sync rate to start the system. Call Tbm_update() at the beginning of your game loop and after unpausing.<br /> <br /> Multiply all your movement speeds by Tbm.factor.<br /> If you want your screen fps, they can be found in Tbm.realfps, more accurate than using screen fps()

Comments

No comments yet.