APIWindow and framewindow_should_close

window_should_close

Returns whether the current game loop should stop.

Signature

window_should_close

Returns whether the current game loop should stop.

Signature

window_should_close() -> bool

Parameters

NameTypeDefaultDescription

Returns

bool

Example

from conjure import *

init_window(360, 640, "API")
while not window_should_close():
    begin_drawing()
    clear_background(WHITE)
    draw_text("Moosh", 120, 300, 28, BLACK)
    end_drawing()

See also

  • init_window
  • close_window
  • set_target_fps

Return to the window and frame overview or continue with the quickstart.