Screen
src.view.screen
¶
Pygame screen wrapper.
The screen view owns the display surface and exposes small helpers for updating and querying the active resolution.
The documentation follows Google-style docstrings so tools such as pdoc, Sphinx Napoleon, or MkDocs-based pipelines can expose parameters, return values, and side effects in a consistent HTML API reference.
Screen
¶
Wrapper around the active Pygame display surface.
Attributes:
| Name | Type | Description |
|---|---|---|
screen |
Surface
|
Active display surface. |
Notes
This class is documented as part of the public project API and is intended to be readable in generated HTML documentation.
Source code in src\view\screen.py
display
property
¶
Return the active display surface.
Returns:
| Type | Description |
|---|---|
|
pygame.Surface: Active Pygame display surface. |
update()
¶
Refresh the display surface from the current settings resolution.
Returns:
| Type | Description |
|---|---|
|
bool | None: For animations and effects, indicates completion or active playback; for rendering/update controllers, no explicit value is returned. |
Side Effects
Mutates animation, effect, terrain, and rendering state depending on the object.
Notes
The method is part of the frame loop and is expected to be called repeatedly.
Source code in src\view\screen.py
get_size()
¶
Return the current configured display size.
Returns:
| Type | Description |
|---|---|
|
tuple[int, int]: Current configured display size. |