init_window
Creates the logical game window and browser canvas surface.
Signature
init_window
Creates the logical game window and browser canvas surface.Signature
init_window(width: int, height: int, title: str) -> NoneParameters
| Name | Type | Default | Description |
|---|---|---|---|
width | int | None | width argument for this API call. |
height | int | None | height argument for this API call. |
title | str | None | title argument for this API call. |
Returns
NoneExample
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
window_should_closeclose_windowset_target_fps
Return to the window and frame overview or continue with the quickstart.