Skip to content

Search

Documentação

Reference

Every component, asset type and script module in the Balaur game engine.

Nesta página

Every component, asset type and script module in the engine.

  • A component gives a node a capability: sprite, body3d, bone2d.
  • An asset type is a resource a component names: mesh, tileset.
  • A script module is a set of functions a script calls: http, physics3d.
  • Vec2, Vec3 and Color are built into the language.

Components

2D

component properties what it gives a node
articulation2d 8 Solves the node's joint2d in reduced coordinates.
body2d 23 A 2D rigid body simulated by rapier in the xy plane.
bone2d 4 Makes the node a 2D bone.
boolean2d 8 Draws the node as its 2D children combined by operation, holes and all.
breakable_joint2d 2 What snaps the node's joint2d: past either, it breaks and calls on_joint_break.
camera2d 4 The orthographic camera a flat scene is drawn from.
character2d 17 A 2D character controller.
collider2d 23 The node's 2D collision shape, chosen by kind.
convex_decomposition2d 1 How the node's collider2d cuts its mesh into convex pieces, for a convex_decomposition.
follow2d 12 Pulls the node's body2d towards the pose of target every fixed step.
generic_joint2d 3 Which axes a joint2d of kind generic locks, and which free ones it ties into one.
joint2d 13 Joins this node's body to connected_body.
light2d 9 A 2D light at the node's position.
line2d 13 A stroked line at the node through the points of a mesh or path2d asset.
mesh_collider2d 10 How the node's collider2d turns its mesh into a shape.
modifier2d 14 Poses 2D bones toward target after the clip runs.
multimesh2d 5 Godot's MultiMeshInstance2D.
occluder2d 2 The outline the node blocks 2D light with.
particles2d 18 A visual-only 2D emitter at the node.
polygon 6 A filled, textured 2D polygon from the mesh asset's points and triangles.
rope_joint2d 1 How long a joint2d of kind rope may stretch.
screen_notifier2d 2 A box that announces screen_entered as it comes on screen and screen_exited as it leaves.
shape2d 4 A 2D primitive at the node, tinted by color and drawn with texture.
soft_circle2d 2 The size of a softbody2d laid out as a circle: a disk of particles inside a rim.
soft_collision2d 3 A mesh the node's softbody2d meets the world through beside its own surface, deformed with the body.
soft_custom2d 5 The particles and elements of a custom softbody2d, as the author lists them.
soft_grid2d 2 The size and the cells of a softbody2d laid out as a grid: a sheet of particles.
soft_outline2d 1 The corners of a softbody2d laid out as an outline: a ring of particles around an inside.
soft_polyline2d 1 Which segments of its mesh a softbody2d laid out as a polyline joins.
soft_rope2d 3 Where a softbody2d laid out as a rope runs, and how many particles it is made of.
soft_skin2d 2 The mesh a softbody2d with cells carries as its skin.
soft_volumetric2d 2 How a volumetric softbody2d fills its mesh's outline with triangles.
softbody2d 35 A deformable 2D body.
spring_joint2d 1 The length a joint2d of kind spring pulls back to.
sprite 14 A textured 2D quad at the node, sized by pixels_per_unit.
text2d 19 A block of text drawn in the 2D pass, pixels_per_unit font pixels per world unit.
tile_collision 20 Collision for the node's tilemap cells.
tile_shapes 2 How the node's tile_collision builds the tiles whose collision is polygons, the ones a tileset gives collision = [[[x, y], ...]].
tilemap 9 A grid of tiles from one tileset asset, centred on the node.
touch_button 10 An on-screen button that presses an action while a finger is on it.
touch_stick 12 An on-screen stick that drives action_x and action_y from -1..1 while a thumb drags it.
transform 4 The node's position, rotation_euler, scale and skew in its parent's space.

3D

component properties what it gives a node
articulation3d 8 Solves the node's joint3d in reduced coordinates.
body3d 25 A 3D rigid body simulated by rapier.
bone3d 4 Makes the node a 3D bone.
boolean3d 9 Draws the node as its children combined by operation.
breakable_joint3d 2 What snaps the node's joint3d: past either, it breaks and calls on_joint_break.
camera3d 10 The camera the scene is drawn from.
character3d 17 A 3D character controller.
collider3d 24 The node's 3D collision shape, chosen by kind.
convex_decomposition3d 9 How the node's collider3d cuts its mesh into convex pieces.
follow3d 12 Pulls the node's body3d towards the pose of target every fixed step.
generic_joint3d 4 Which axes a joint3d of kind generic locks, and which free ones it ties into one.
joint3d 13 Joins this node's body to connected_body.
light3d 9 A 3D light placed and aimed by the node.
mesh 10 3D geometry from the mesh asset in source, drawn at the node.
mesh_collider3d 9 How the node's collider3d turns its mesh into a shape.
modifier3d 14 Poses bone3d nodes toward target after the clip runs.
multimesh3d 9 Godot's MultiMeshInstance3D.
particles3d 23 A visual-only 3D emitter at the node, drawn as instances of one quad.
reflection_probe 9 A box the room around it was captured inside.
rope_joint3d 1 How long a joint3d of kind rope may stretch.
shape3d 9 A 3D primitive at the node, tinted by color and drawn with texture.
soft_cloth_tube3d 4 The shape of a softbody3d laid out as a cloth_tube.
soft_collision3d 3 A mesh the node's softbody3d meets the world through beside its own surface, deformed with the body.
soft_custom3d 7 The particles and elements of a custom softbody3d, as the author lists them.
soft_grid3d 2 The size and the cells of a softbody3d laid out as a box or a cloth.
soft_rope3d 3 Where a softbody3d laid out as a rope runs, and how many particles it is made of.
soft_skin3d 2 The mesh a softbody3d with cells carries as its skin.
soft_sphere3d 2 The size of a softbody3d laid out as a sphere: a refined icosahedron of particles.
soft_volumetric3d 5 How a volumetric softbody3d fills its mesh with tetrahedra.
softbody3d 35 A deformable 3D body.
spring_joint3d 1 The length a joint3d of kind spring pulls back to.
text3d 25 A block of text drawn in the 3D pass on a quad, pixels_per_unit font pixels per world unit.
vehicle3d 6 Makes the node's body3d a raycast vehicle chassis.
wheel3d 11 One wheel of the vehicle3d above it.

Physics

component properties what it gives a node
ragdoll 2 Drives a rig's bones from bodies, one body per bone and named after it, which the editor's Create Physical Skeleton builds.

Rendering

component properties what it gives a node
debug_draw 7 A wireframe over every triangle edge of the node's drawing.
environment 36 The scene's atmosphere.
material 1 source is the material asset this node and everything under it draw with.

Animation

component properties what it gives a node
animation 4 Plays animation clips on the node.
state_machine 4 Runs the state_machine asset in machine over the player node's clips.

Audio

component properties what it gives a node
listener 4 The point positional sounds are heard from.
sound 23 A sound on the node.

UI

component properties what it gives a node
shortcuts 1 Chords a node answers.
widget 61 A HUD element drawn every frame.
widget_box 5 The rarer words about a box, which any kind may carry.
widget_button 10 The rows a button or menu reads.
widget_check 4 The rows a checkbox, switch or button reads.
widget_child 4 What a child says to the parent it sits in, whatever its own kind.
widget_code 6 The rows a code widget reads: what it highlights and its gutter.
widget_color_picker 3 The rows a color_picker reads: the colour it holds and what it offers.
widget_dropdown 3 The rows a dropdown reads: what it offers, how tall its list grows and what shuts it.
widget_field 17 The rows a text_field, text_area or code reads.
widget_fold 1 The row a fold reads: whether it shows what is under its header.
widget_grid 6 The rows a grid reads: its tracks and its named areas.
widget_image 8 The rows an image reads: its picture, the part of it drawn and how it sits in its box.
widget_layout 10 The rows a container reads: how it lays out what is in it.
widget_list 4 The rows a list or tree reads: its card faces, and what a drag or a mark on a row does.
widget_menu 7 The rows a menu reads: where its popup opens and what shuts it.
widget_range 25 The rows a slider, number_field or progress_bar reads.
widget_rows 4 The rows a list, tree or table reads: what it holds and what is picked.
widget_scroll 12 The rows a scroll, list, tree or table reads, and a row, column, grid or panel whose overflow is scroll.
widget_separator 3 The rows a separator reads: the room it takes and how far its line runs.
widget_shortcut 3 The rows of a chord that clicks a widget, which any kind may carry.
widget_table 8 The rows a table reads: its columns and how they sort.
widget_tabs 1 The row a tabs reads: which child it shows.
widget_text 11 The rows a kind drawing a caption reads.
widget_window 9 The rows a window or a dialog reads: whether it is up, its chrome, and what shuts it.

Other

component properties what it gives a node
bindings 1 Reactions the node runs from a table.
meta 0 Named values filed on the node, like Godot's set_meta.
states 1 Named looks for the node.
timer 5 Counts wait_time seconds down and emits timeout from the node.

Asset types

type files used by
animation_library animations/ animation.library
bone_map animations/ —
camera_effects camera_effects/ camera2d.effects, camera3d.effects
font fonts/ text2d.font, text3d.font, widget.font
heightfield heightfields/ —
material materials/ boolean2d.material, boolean3d.material, line2d.material, material.source, mesh.material, multimesh2d.material, multimesh3d.material, particles2d.material, particles3d.material, polygon.material, shape2d.material, shape3d.material, sprite.material, text2d.material, text3d.material, tilemap.material
mesh models/ line2d.mesh, mesh.source, occluder2d.mesh, polygon.mesh, soft_collision2d.collision_mesh, soft_collision3d.collision_mesh, softbody2d.mesh, softbody3d.mesh
multimesh multimeshes/ multimesh2d.source, multimesh3d.source
path2d paths/ —
path3d paths/ —
physics_material physics_materials/ collider2d.physics_material, collider3d.physics_material, softbody2d.physics_material, softbody3d.physics_material, tile_collision.physics_material
skeleton_profile animations/ —
soft_material soft_materials/ softbody2d.soft_material, softbody3d.soft_material
sprite_sheet sheets/ particles2d.sheet, sprite.sheet
state_machine animations/ state_machine.machine
text_style text_styles/ text2d.text_style, text3d.text_style, widget.text_style
texture textures/ boolean2d.texture, boolean3d.texture, line2d.texture, mesh.texture, multimesh2d.texture, multimesh3d.texture, particles2d.texture, particles3d.texture, polygon.texture, shape2d.texture, shape3d.texture, sprite.texture
tileset tilesets/ tilemap.tileset
voxels voxels/ —
widget_theme themes/ widget.theme

Script modules

module functions what it is for
animation 19 Clip playback on a node's animation component: play, pause, seek and query.
apple 9 Apple services beyond platform.*.
assets 9 Asset definitions by reference.
audio 19 Sound playback.
browser 6 The page a browser build runs in; off the web every query answers nil.
debugger 9 Breakpoints, pausing a script and resuming it.
dependency 6 The projects a game imports whole under deps/<alias>/, declared in [dependencies].
device 4 What a phone lends a game beyond the store.
encoding 3 Bytes to base64 text and back, and UTF-8 bytes back to text.
engine 30 The running app.
events 4 Named events between scripts.
export 5 Exports the project being edited.
forge 5 Projects kept on Forge, for the editor's pickers, and adding one to a game as a dependency.
fs 10 Files on disk, project-relative unless the path is absolute.
geometry2d 11 Polygons on the plane as lists of Vec2 points in outline order.
geometry3d 7 Mesh operations.
google 1 Google services.
hash 2 SHA-256 content hashes of files and strings.
http 2 HTTP requests off the frame.
import 6 Imports a .glb or .gltf model, an .aseprite sprite, or a .tmx or .ldtk level into the project being edited, with the importers balaur import runs.
input 51 One frame of input.
json 3 JSON text to and from script values.
log 7 The info, warn and error levels a script writes at, and the buffer behind them.
math 24 Deterministic float maths backed by pure-Rust libm.
multimesh2d 13 Thousands of copies of one sprite in one draw.
multimesh3d 12 Thousands of copies of one mesh in one draw.
multiplayer 14 Host, join and play a rollback match.
node 57 What every node has: name, path, transform, children, components and script.
physics 12 What spans both physics worlds: pausing, sleeping, tuning and clearing.
physics2d 118 The 2D rigid-body world.
physics3d 127 The 3D rigid-body world.
picture 1 A picture of a project.
platform 24 Store services every platform shares.
project 15 The projects this machine has opened, the templates a new one starts from, and the folder picker the OS provides.
quat 8 Rotations as quaternions { x, y, z, w }.
random 6 The engine's one deterministic PCG32 stream.
regex 6 Regular expressions, the regex-lite dialect: no look-around or back-references.
release 4 Which build of the engine this is, what the channels are publishing, and replacing this install with another.
render 45 What a frame is made of.
replay 16 Records what a running game is fed and plays it back.
rollback 2 Rollback netcode from a script's side.
scene 25 The node tree.
script 13 What a tool asks about a script file.
settings 10 Every setting the engine, its plugins and the game declare, by path.
skeleton 1 Bones under a rig node, in the order a skin numbers joints in.
steam 3 Valve's Steamworks SDK 1.64, loaded from steam_api beside the game when one is there and the Steam client runs it.
steam_apps 33 Valve's ISteamApps, through SteamApps(): each method in snake case, nil without Steam.
steam_controller 34 Valve's ISteamController, through SteamController().
steam_friends 78 Valve's ISteamFriends, through SteamFriends().
steam_gameserveritem 3 The functions on Valve's gameserveritem_t, which take one as value.
steam_html_surface 36 Valve's ISteamHTMLSurface, through SteamHTMLSurface().
steam_http 25 Valve's ISteamHTTP, through SteamHTTP(): each method in snake case, nil without Steam.
steam_input 46 Valve's ISteamInput, through SteamInput().
steam_inventory 36 Valve's ISteamInventory, through SteamInventory().
steam_ip_address 1 The functions on Valve's SteamIPAddress_t, which take one as value.
steam_match_making_key_value_pair 1 The functions on Valve's MatchMakingKeyValuePair_t, which take one as value.
steam_matchmaking 38 Valve's ISteamMatchmaking, through SteamMatchmaking().
steam_matchmaking_servers 1 Valve's ISteamMatchmakingServers, through SteamMatchmakingServers().
steam_music 9 Valve's ISteamMusic, through SteamMusic().
steam_networking 22 Valve's ISteamNetworking, through SteamNetworking().
steam_networking_config_value 3 The functions on Valve's SteamNetworkingConfigValue_t, which take one as value.
steam_networking_identity 24 The functions on Valve's SteamNetworkingIdentity, which take one as value.
steam_networking_ip_addr 12 The functions on Valve's SteamNetworkingIPAddr, which take one as value.
steam_networking_messages 5 Valve's ISteamNetworkingMessages, through SteamNetworkingMessages_SteamAPI().
steam_networking_sockets 34 Valve's ISteamNetworkingSockets, through SteamNetworkingSockets_SteamAPI().
steam_networking_utils 30 Valve's ISteamNetworkingUtils, through SteamNetworkingUtils_SteamAPI().
steam_parental_settings 6 Valve's ISteamParentalSettings, through SteamParentalSettings().
steam_parties 12 Valve's ISteamParties, through SteamParties().
steam_remote_play 19 Valve's ISteamRemotePlay, through SteamRemotePlay().
steam_remote_storage 54 Valve's ISteamRemoteStorage, through SteamRemoteStorage().
steam_screenshots 9 Valve's ISteamScreenshots, through SteamScreenshots().
steam_servernetadr 12 The functions on Valve's servernetadr_t, which take one as value.
steam_timeline 18 Valve's ISteamTimeline, through SteamTimeline().
steam_ugc 97 Valve's ISteamUGC, through SteamUGC(): each method in snake case, nil without Steam.
steam_user 33 Valve's ISteamUser, through SteamUser(): each method in snake case, nil without Steam.
steam_user_stats 44 Valve's ISteamUserStats, through SteamUserStats().
steam_utils 36 Valve's ISteamUtils, through SteamUtils().
steam_video 4 Valve's ISteamVideo, through SteamVideo().
strings 6 Localization: one strings/<locale>.toml per language, keys to strings.
task 3 Waiting inside an async method.
toml 3 TOML text to and from script tables, the format of scene files, asset definitions and component properties.
types 0 The names of a value's type: what kind() answers on an any.
ui 38 What a script asks of the UI and tells it.
websocket 5 A long-lived socket for text or binary frames.
window 7 The OS window and the display under it.

Tem certeza?