Docs > Class > Screen
Screen class
parent: World
Constructor
Screen(size, title="Physics Game") -> Screen
Extends
This class extends every in parent, see World class.
Caution: The size can be set in screen.
Here after is the new in Screen:
Class Method
- set_event()
set_event(event: Event) -> None, set the event to screen.
- set_world()
set_world(world: World) -> Screen, set the main world to screen, really it's not neccessary because
a screen's orginally a world, you can add the world by the add() but the objects of world can't be blitted by screen. The group of object is planned to be created at new version.
Static Constaint Variables
- FULL_SCREEN
The constaint to return the full size of computer's screen to be init the size of screen.