PixelPAD 2D - rooms

set_room(name: str) -> None

Example
Description
Changes the active room to name.
Parameters
name
The name of a room asset to set as the active room, as a string.

Return
The name of the active room, as a string.

get_room() -> str

Example
Description
Returns the name of the active room.
Parameters
None
No parameters.

Return
The name of the active room, as a string.

Rooms

In PixelPAD, rooms are where your game takes place. A room is defined by a room script, which is a Python program whose main purpose is to create and connect objects. You can think of a room as a "scene": a collection of game objects working together to present a specific scenario to the player. There can only be one room active at a time. To change which room is active, use the set_room function.
Company
Resources
Contact Us