Change script types and add a few scenes
Some checks failed
Build / build (push) Failing after 39s

This commit is contained in:
Moritz Ruth 2025-04-12 18:44:43 +02:00
parent 68a91aa31a
commit 34fa93ad44
Signed by: moritzruth
GPG key ID: C9BBAB79405EE56D
18 changed files with 354 additions and 215 deletions

View file

@ -0,0 +1,37 @@
import { Temporal } from "temporal-polyfill"
import { type SceneDefinition } from "../types"
import { defineInteractionScene } from "../types"
export const sceneTutorialKettensaege: SceneDefinition = defineInteractionScene({
id: "tutorial-kettensaege",
type: "interaction",
label: "Tutorial: Kettensäge",
plannedDuration: Temporal.Duration.from({ minutes: 8 }),
objects: {
kettensaege: {
label: "Kettensäge",
reveal: true,
},
redner: {
label: "Redner",
reveal: true,
}
},
interactions: [
{
type: "combine",
inputObjects: {
"kettensaege": { consume: false },
"redner": { consume: true },
},
outputObjectIds: [],
note: "Bei den ersten zwei Versuchen unterbricht der Redner Faba, bevor er ihn verjagen kann. Beim dritten Mal flüchtet der Redner dann."
},
{
type: "use",
objectId: "kettensaege",
consume: false,
revealedObjectIds: []
}
]
})