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.

  1. doom_fixed_to_double(arg0: int) -> float

  2. doom_fixed_to_double(arg0: float) -> float

Button functions#

is_binary_button(button: vizdoom.Button) bool#

Returns True if button is binary button.

is_delta_button(button: vizdoom.Button) bool#

Returns True if button is delta button.