Skip to content

Search

Документация

Manual

Scenes and nodes Balaur scenes: nodes are ECS entities, scenes are TOML, and every component is a scene key, a script field and an inspector row.
Scripting Balaur Script: typed .bs files compiled to WebAssembly, with lifecycle hooks, exported properties, await, hot reload that keeps state, and a debugger.
Shaders and materials Shaders in Balaur are WESL (WGSL with imports and variants), linked at run time. A material asset names a shader and its values; meshes take one.
Rendering Lit 2D scenes in Balaur: light2d and occluder2d build a light map every sprite, polygon and tile is multiplied by, plus camera ambient and screen-space post.
Animation Animation in Balaur: clips and easings, crossfades and state machines, tweens, 2D bones with skinned polygons, 3D rigs from glTF, and IK.
Physics 2D and 3D physics in Balaur through Rapier, stepped on a fixed 60 Hz tick with enhanced determinism: bodies, colliders, joints, characters and vehicles.
UI Balaur UI: widget components on scene nodes, saved with the scene, edited in the inspector, laid out by the engine and painted with egui.
Input Input in Balaur: actions declared in project.toml, bound to keyboard, mouse, gamepad and touch, read as one snapshot per frame and replayed from a recording.
Networking HTTP, WebSockets and WebTransport for Balaur scripts, delivered once per tick; a recorded session replays with the network included.
Gamend The gamend module connects Balaur scripts to a Gamend backend (login, REST endpoints, lobbies and server hooks) with replies delivered once per tick.
Platform services Which store or OS answers each platform service in Balaur: sign-in, achievements, saves, purchases, notifications and push, and how to set each up.
Stores The platform module is one script API over every store: sign-in, achievements, leaderboards, cloud saves and purchases, its answers, and rollback.
Apple services Game Center, Sign in with Apple, iCloud, StoreKit purchases and push from Balaur Script, and how to set each up in project.toml and at Apple.
Google services Play Games, saved games, Play Billing, in-app review, Firebase push and Sign in with Google on Android: capabilities, Play Console, Firebase and SHA-1 keys.
Sign-in pages platform::web_sign_in shows a provider's sign-in page over the game: the system sheet on Apple, a Custom Tab on Android, and the browser on desktop.
Steam Steam from Balaur Script: Steam behind platform.*, the steam modules in every desktop build, a game that runs without Steam, and balaur export --steam.
Device What a phone lends a Balaur game: local notifications, push tokens, the motor and haptics, the share sheet and the store's review prompt, per platform.
Plugins Everything above the Balaur core is a plugin. Build one into the engine, or load it at run time from a shared library written in Rust or C.
The editor The Balaur editor is itself a Balaur project: five workspaces (Scene, Script, Animation, Physics, UI), gizmos, timeline, rig tools, play-in-editor and undo.
Determinism Same inputs, same outputs on every platform: a fixed 60 Hz step, Rapier's enhanced determinism, libm math, per-tick digests, and record and replay.
Shipping a game Ship a Balaur game as a .bpak of scripts, scenes and assets, or fuse it onto a runtime for one self-contained executable per platform.
Build size What is in the Balaur web module, which cargo features and dependencies decide its size, and how to build a smaller runtime template.
Continuous integration Three reusable GitHub Actions build a Balaur game on every push: setup installs the engine, export-game signs and uploads, build-engine compiles a runtime.
Text The text2d and text3d components: keys, outline and shadow, markup, script calls, measuring, bitmap fonts and what a block costs.
Tile maps Tile maps: solid, one-way, animated and light-blocking tiles, one voxel collider, autotiling from a rule table, isometric and hex, Tiled and LDtk import.
Dependencies Import another Balaur project whole into deps/<alias>/: kept on Forge and pinned by project.lock, or a folder on this machine. Its paths read from its own root.
Balaur Script reference Every construct of Balaur Script: types, values, operators, strings, lists, maps, optionals, structs, classes, enums and match, functions, any and modules.

Точно?