gncpy.game_engine.rendering2d.init_window
- init_window(render_mode, width, height)[source]
Initialize the main window.
- Parameters:
render_mode (string) – Render mode to use, if
'human'
is given then the window will be shown. All other values are ignored.width (int) – Window width in pixels.
height (int) – Window height in pixels.
- Returns:
window – Main window object for drawing.
- Return type:
pygame window