Getting Started

This guide covers how to build scenes with LeetDreamer.

Prerequisites

Building a Scene

Run the build script with a scene specification:

python build.py scenes/two_pointers/scene.json -v

The -v flag enables verbose output to see pipeline progress.

Creating a Scene Spec

Scene specifications live in scenes/ and define:

{
  "title": "Two Sum II",
  "template": "two_pointers",
  "steps": [
    {
      "narration": "We start with two pointers.",
      "state": {
        "left": 0,
        "right": 6
      }
    }
  ]
}

Narration Guidelines

Output

Generated videos are saved to output/ with the scene name and timestamp.