Skip to content

API Reference

PageContents
ObjectsEvery scene object type with its own properties, methods and events, plus the API every object shares.
AudioSound effects, background music, volumes.
SceneLoading scenes, finding objects by path, name or uuid, creating and removing objects while the game runs, walking the hierarchy.
PhysicsRigid bodies: gravity, body types, mass, friction, forces, velocity, grounded checks, raycasts.
GlobalThe Game class with its event hooks, plus quit(), set_fps(), get_screen() and the timing/input helpers.
WindowTitle, icon, size, position, fullscreen, resizing, mouse cursor.
Project ConfigReading the project settings from project.pygs.
Events & KeysKeyboard constants (studio.K_SPACE, …), key modifiers and mouse buttons.