mini_arcade_core.engine.loop.state ================================== .. py:module:: mini_arcade_core.engine.loop.state .. autoapi-nested-parse:: Game core module defining the Game class and configuration. Classes ------- .. autoapisummary:: mini_arcade_core.engine.loop.state.FrameState Module Contents --------------- .. py:class:: FrameState State of the current frame in the main loop. :ivar frame_index (int): The current frame index. :ivar last_time (float): The timestamp of the last frame. :ivar time_s (float): The total elapsed time in seconds. :ivar dt (float): The delta time since the last frame in seconds. .. py:attribute:: frame_index :type: int :value: 0 .. py:attribute:: last_time :type: float .. py:attribute:: time_s :type: float :value: 0.0 .. py:attribute:: dt :type: float :value: 0.0 .. py:method:: step_time() Step the time forward by calculating dt.