Window And Frame
Window and frame helpers configure the logical canvas and keep drawing work inside a predictable game loop.
Functions
init_window(width: int, height: int, title: str) -> Nonewindow_should_close() -> boolclose_window() -> Noneset_target_fps(fps: int) -> Noneget_target_fps() -> intget_fps() -> intget_frame_time() -> floatget_time() -> floatbegin_drawing() -> Noneend_drawing() -> Noneclear_background(color: Color) -> Noneget_screen_width() -> intget_screen_height() -> int
from conjure import *
init_window(360, 640, "Frame Example")
set_target_fps(60)
while not window_should_close():
begin_drawing()
clear_background(WHITE)
draw_text(str(get_fps()), 12, 12, 20, BLACK)
end_drawing()Use these with drawing primitives and the quickstart.