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
This repository can be added as an extension in MakeCode.
- open https://arcade.makecode.com/
- click on New Project
- click on Extensions under the gearwheel menu
- search for https://github.com/hackx2/pxt_cutscene and import
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.
- for PXT/arcade