Packages
Packages add shared Tide code and C libraries to a game. This source tree contains eleven optional packages: 2D and 3D renderers, CPU visibility queries, mesh building, particle effects, two physics integrations, two multiplayer menus, a Steam integration and Opus voice chat. Each package has its own page here, with setup, API examples and current limits. Use a checkout or installation containing the packages you need.
Bundled packages
The name in the first column is what you pass to tide add or write in tide.packages. The namespace is what you use in Tide code.
| Package | Namespace | What it provides | Documentation |
|---|---|---|---|
render2d |
Render2D |
Elevated sprites, normal maps, lights, cutout shadows, screen-space Radiance Cascades and bloom | Render2D |
render3d |
Render3D |
Static/skinned PBR meshes, lights, shadows, transparency, vertex hooks, bloom and HDR effects | Render3D |
cornerculling |
CornerCulling |
Conservative CPU box occlusion, cached queries and a spatial tree | Corner Culling |
geometry |
Geometry |
Meshes built in code: shapes, normals and tangents, welding, merging and bounds over a game's own vertex structs | Geometry |
particles |
Particles |
Bounded particle emitters, code-defined spawn and update functions, and instanced 2D/3D drawing | Particles |
box2d |
Box2D |
Deterministic 2D rigid bodies, shapes, collisions and queries | Box2D |
box3d |
Box3D |
Deterministic 3D rigid bodies, shapes, collisions and queries | Box3D |
rooms |
Rooms |
Play, Host and Join menus, room-code sharing and volume settings | Rooms |
lobby |
Lobbies |
Pre-match lobbies, ready flags, browsing and quick match, with a menu | Lobby |
steam |
Steam |
Steam identity, lobbies, matchmaking and match transport for lobby |
Steam |
voice |
Voice |
Optional Opus voice chat through sessions, push-to-talk and receive volume | Voice chat |
Choose rooms for a simple Play/Host/Join flow, or lobby when players gather before a match and browse or find games. steam extends lobby for desktop Steam builds and requires the game's own Steamworks library; that library is not bundled with Tide.
Choose render2d for lit sprites on the XY plane, with Z elevation, normal maps, cutout silhouettes, shadows on lower surfaces and optional screen-space indirect lighting. Its first version supports opaque and alpha-tested sprites; see its page for the visible-surface GI limits.
Choose render3d for package-owned lighting and shadow passes over static or skinned mesh/material components on match entities. It has one camera, multiple directional/point/spot lights, bounded shadow maps, normal/height/ORM/emission maps, cutout shadows, sorted transparency, shared vertex deformation, bloom and an ordered HDR effect chain. Lights can be match or local entities. Its page includes interactive material, animation and effect comparisons with orbit cameras. The engine's drawing and shader APIs remain available for other rendering paths.
Choose geometry for meshes a game makes in code: ground, levels built from pieces, shapes for prototypes. It appends to the vertex and index lists Draw.Mesh takes, over any vertex struct.
Choose particles for sparks, smoke, rain, magic and other local visual effects authored in Tide code. Emitters supply storage and lifetimes; your functions define their behavior.
Choose box2d or box3d for their collision APIs.
To add one, run this in the game's folder:
tide add box2dThat adds box2d to tide.packages. Its code uses the namespace Box2D, so a file can say using Box2D; or name a type in full, such as Box2D.Body. tide add also adds any packages it needs.
Bundled packages compile with games that list them. A game that leaves a package out compiles and ships none of it. Their versions follow your Tide installation: tide upgrade updates them, while tide update updates packages from git. See Using and writing packages for dependency files, pinned commits, local folders, conditional builds and making a package your own.
What is built into the engine?
The ECS, drawing, audio, GUI, math and match networking are engine features. You use them without adding a package. render3d builds its material lighting, shadows and presentation passes on the engine's mesh, shader and render-target APIs.
In particular, Session.Start, Open and Join, room codes and host migration belong to the engine. The rooms package supplies a menu over those features. The lobby package adds pre-match groups and matchmaking. Rigid-body collision physics comes from box2d or box3d.
Finding a package's docs
For a bundled package, use its page in this section. Its installed source folder also contains a README.md. Run tide version to find the installation folder, then look in src/packages/<name>/.
For a package from git, start with the source listed in your game's tide.packages: open that repository and read its README, documentation and examples. A source with // names a package subfolder within the repository. The file pins a commit, so use documentation from that commit when the repository's latest docs describe a different API. For a local package, start with the folder named by its dependency line.
Editors provide completion and go to definition for packages in the game, so you can inspect the exact declarations you build with. Run tide fetch first if a git package has not been downloaded. Package documentation is supplied by its author; Tide does not currently have a package documentation registry or a command that opens a package's docs.
Writing documentation for your package
When sharing a package, put a README in its folder that names the package and namespace, shows how to add it and gives a minimal usage example. Link any fuller API docs and examples there, and describe dependencies, required C libraries, supported targets and current limits. Keep the docs with the code so users of a pinned commit can find the matching instructions.