mini_arcade_core.engine.loop.state

Game core module defining the Game class and configuration.

Classes

FrameState

State of the current frame in the main loop.

Module Contents

class mini_arcade_core.engine.loop.state.FrameState[source]

State of the current frame in the main loop.

Variables:
  • (int) (frame_index) – The current frame index.

  • (float) (dt) – The timestamp of the last frame.

  • (float) – The total elapsed time in seconds.

  • (float) – The delta time since the last frame in seconds.

frame_index: int = 0
last_time: float
time_s: float = 0.0
dt: float = 0.0
step_time()[source]

Step the time forward by calculating dt.