Data format
A VERB project is some data (split into one file per scene, character, dialogue…, see Large projects and teams) plus its assets. You see them if you download a .verbproj or work with a local folder. The interfaces below describe the whole project, as the editor sees it. Knowing its structure is useful for asking an AI to generate scripts, rigs or effects you can paste into the editor.
General structure
interface GameProject {
schemaVersion: number;
meta: GameMeta; // title, resolution, languages, start scene, player…
ui: UiSettings; // interaction, verbs, cursors, menu, subtitles, behaviour
assets: AssetMeta[]; // { id, name, kind: image|audio|video|data, mime, width?, height?, folder? }
scenes: Scene[];
characters: Character[];
items: InventoryItem[];
dialogues: Dialogue[];
scripts: Script[];
variables: Variable[]; // { id, name, type: boolean|number|string, initial }
recipes: Recipe[]; // combinations A + B → result
particleEffects?: ParticleEffect[];
strings: StringTable; // { [key]: { text: { es, en… }, voice?: { es: assetId } } }
assetFolders?: string[];
scriptFolders?: ScriptFolder[];
objectives?: Objective[];
documents?: GameDocument[];
}Texts by key
Every visible text (names, lines, descriptions) is stored as a key into the strings table. That way the same field has all its translations and voices.
Scene
interface Scene {
id: string; name: string; width: number; height: number;
layers: SceneLayer[]; // kind: background | playfield | foreground, parallax, size, blend, scroll…
walkable: { areas: Polygon[]; obstacles: Polygon[] };
scaling: { y: number; scale: number }[];
ambientTint: string;
lights: LightZone[];
hotspots: Hotspot[]; // polygon, walkTo, facing, approach, cursor, enabled, exit
props: SceneProp[]; // states[], pickupItemId, obstacle, approach…
entrances: Entrance[];
characters: CharacterPlacement[];
regions: Region[];
masks?: SceneMask[]; // { id, name, polygon, baselineY, enabled? }
emitters?: SceneEmitter[];
musicAssetId?, ambienceAssetId?, weather?
}Script (logic)
A script is a graph: nodes (blocks with a type and params) and edges that connect a block's out, true or false output to the next one. The first block is always an event.
{
"id": "scr_1", "name": "Use the door", "sceneId": "scn_1", "folderId": null,
"nodes": [
{ "id": "n1", "type": "event.useItem", "params": { "item": "itm_key", "target": "hotspot:hs_door" }, "position": { "x": 0, "y": 0 } },
{ "id": "n2", "type": "act.removeItem", "params": { "item": "itm_key" }, "position": { "x": 380, "y": 0 } },
{ "id": "n3", "type": "act.changeScene", "params": { "scene": "scn_2", "entrance": "ent_1", "transition": "fade" }, "position": { "x": 760, "y": 0 } }
],
"edges": [
{ "id": "e1", "source": "n1", "sourceHandle": "out", "target": "n2" },
{ "id": "e2", "source": "n2", "sourceHandle": "out", "target": "n3" }
]
}Interaction targets are encoded as hotspot:<id>, prop:<id> or character:<id>; the player is player. All blocks and parameters are in the block reference.
Character
interface Character {
id: string; name: TextKey; kind?: 'sprite' | 'spine' | 'rig';
color: string; speed: number; directions: 4 | 8;
animations: { idle, walk, talk, interact, [custom]: AnimationClip }; // { fps, loop, frames: { down: [assetId…], right… } }
pivot: Vec2; // feet, in frame pixels
mouth: Vec2; // mouth, relative to the feet
size: { width: number; height: number }; // height in the game (uniform scale)
talkMode: 'frames' | 'lipsync';
spine?: SpineConfig; rig?: RigData; portraitAssetId?: string;
}VERB Rig
| Field | Description |
|---|---|
bones[] | { id, name, parent, x, y, rotation, length, scaleX, scaleY }. Local transform; the X axis points along the bone; degrees clockwise. |
slots[] | Pieces in draw order: { id, name, bone, assetId | null, x, y, rotation, scaleX, scaleY, anchor, width?, color?, visible? }. Without an image a colored piece is drawn. |
animations[] | { id, name, duration, loop, tracks[], slotTracks?, events? }. Track: { bone, prop: rotation|x|y|scaleX|scaleY, keys: [{ t, v, ease?, bezier? }] }. Event: { id, t, name, sound? } (plays when passing it). |
ik[] | Inverse kinematics: { id, name, bones: [bone] | [bone, child], target, bend: 1 | -1, mix: 0..1 }. The target is a (zero-length) bone that you animate. |
poses[] | The editor's library: { id, name, values: { bone: { rotation?, x?, y?, scaleX?, scaleY? } } }. |
mapping | State → direction → animation id. |
scale, facing, mirror, blend | Scale in the game, which way it faces, whether it is mirrored and the seconds of blend when switching animation (0 = hard cut). |
Keys are offsets over the setup pose: rotation and position add up, scale multiplies. Curves: smooth (default), linear, in, out, back, backIn, bounce, elastic and step; a key with bezier: [x1, y1, x2, y2] (like CSS cubic-bezier) uses its own curve for the segment that starts at it.
Particle effect
{
"id": "fx_1", "name": "Fire", "rate": 60, "burst": 0, "maxParticles": 300,
"lifetime": [0.5, 1.1], "shape": "line", "area": { "width": 30, "height": 0 },
"speed": [60, 120], "angle": -90, "spread": 20, "gravity": { "x": 0, "y": -40 },
"drag": 0, "wobble": 6, "spin": [0, 0], "texture": "soft",
"size": [26, 6], "sizeJitter": 0.3, "colors": ["#fff3b0", "#ffb347", "#ff5a1f", "#6b1d0d"],
"alpha": [0.2, 1, 0], "blend": "add", "prewarm": true
}Files
| File | Content |
|---|---|
.verbproj | A zip with the same structure as the folder (project.json, scenes/, texts/…) and the assets in assets/ (backup / exchange). Old backups with game.json still open. |
| Synced folder | One file per piece (project.json, scenes/…, texts/<language>.json…) + assets/ with the same folders as the editor's asset library (assets/<folders>/<id>__<name>); new folders are created in both places, and changes you make by hand in assets/ (new, deleted, renamed or moved files) are applied automatically when you return to the editor. |
Exported game (data/)
It is what Publish → Export game creates inside the HTML5 zip, and the same goes inside the desktop .verbgame that the VERB Builder opens (see Publish and share).
An exported game is a data/ folder that the web player and the desktop VERB Runner read in the same way:
| File | Content |
|---|---|
manifest.json | Public: format version, engine version, title, author, resolution, languages, packs, every file with its size and SHA-256, and the encryption data (never the key). It does not say which assets the game has. |
game.dat | The project and the asset index, compressed (and encrypted). |
assets-000.dat, assets-001.dat… | The assets, in blocks of at most 32 MB; each asset is encrypted on its own. |
engine.dat | The game engine. |
packs/<id>.dat | The libraries used by minigames (Three.js, Phaser, p5…), to play offline. |
Every .dat starts with the VRBD mark. Encryption (AES-256-GCM) has three modes:
- Web: the data cannot be opened like a zip, unpacked, or have an image dragged out of it. The browser must be able to decrypt it to play, so it protects against casual copying, as in other engines, not against someone determined.
- Desktop: only the VERB Runner can decrypt it; the key is neither in the editor nor in the game code.
- Unencrypted: the data stays readable (for mods or debugging).
If a file is missing or has been modified, the game says “Some game files are missing” or “The game data is damaged” (in Spanish and English at once) instead of staying black.
Packs: by default only the libraries requested by the game's code minigames are included (cdnjs, jsDelivr and unpkg addresses are recognized); you can also include all of them. A script from another website, or a library version VERB does not ship, will still need an internet connection. The AI agent checks this with check_export.