View on GitHub

pxt_cutscene

A MakeCode project

pxt_cutscene

A lightweight, event-based cutscene system, for playing timed events.
The API is designed to be simple, and compatible with TypeScript, Python, and block-based usage…

Open this page at hackx2.github.io/pxt_cutscene

Use as Extension

This repository can be added as an extension in MakeCode.

  1. open https://arcade.makecode.com/
  2. click on New Project
  3. click on Extensions under the gearwheel menu
  4. search for https://github.com/hackx2/pxt_cutscene and import

Basic Usage

const scene = cutscene.create();

scene.add(500, "start", () => {
    console.log("Cutscene started");
});

scene.add(1000, "dialogue", () => {
    console.log("Hello, world!");
});

scene.start();

Alternatively, refer to test.ts for a more in-depth example.


Metadata (used for search, rendering)