Utilities#
Here we document the helpers functions that are not part of any object. They mostly help to deal with conversion of Doom’s engine types.
Time conversion functions#
- doom_tics_to_ms(doom_tics: float, fps: int = 35) float #
Calculates how many tics will be made during given number of milliseconds.
- ms_to_doom_tics(doom_tics: float, fps: int = 35) float #
Calculates the number of milliseconds that will pass during specified number of tics.
- doom_tics_to_sec(doom_tics: float, fps: int = 35) float #
Calculates how many tics will be made during given number of seconds.
- sec_to_doom_tics(doom_tics: float, fps: int = 35) float #
Calculates the number of seconds that will pass during specified number of tics.
Doom fixed point conversion functions#
- doom_fixed_to_double(*args, **kwargs)#
Overloaded function.
doom_fixed_to_double(arg0: int) -> float
doom_fixed_to_double(arg0: float) -> float