Changes between Version 2 and Version 3 of code/howto/Tickable
- Timestamp:
- Apr 12, 2017, 11:49:34 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
code/howto/Tickable
v2 v3 1 1 = HowTo: Tickable = 2 [[TracNav(TracNav/TOC_Development)]]3 2 4 A tick is one frame or one iteration of the main-loop. Classes can be called every tick. This is achieved by inheriting from [wiki: Tickable] and implementing the {{{virtual void tick(float dt)}}} function. ''dt'' is the time '''in seconds''' passed since the last tick.3 A tick is one frame or one iteration of the main-loop. Classes can be called every tick. This is achieved by inheriting from [wiki:doc/Tickable] and implementing the {{{virtual void tick(float dt)}}} function. ''dt'' is the time '''in seconds''' passed since the last tick. 5 4 6 5 *.h file: