Add scene
All checks were successful
Build / build (push) Successful in 1m16s

This commit is contained in:
Moritz Ruth 2025-04-14 19:09:02 +02:00
parent 3498bbb8ad
commit 808f4794b2
Signed by: moritzruth
GPG key ID: C9BBAB79405EE56D
9 changed files with 53 additions and 0 deletions

BIN
public/objects/antenne.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

BIN
public/objects/gameboy.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
public/objects/hammer.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

BIN
public/objects/radio.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

BIN
public/objects/zahnrad.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View file

@ -4,6 +4,7 @@ import { sceneTutorialKettensaege } from "./scenes/tutorial-kettensaege"
import { sceneTutorialMuesli } from "./scenes/tutorial-muesli"
import { sceneTutorialVorhang } from "./scenes/tutorial-vorhang"
import { sceneChoiceTest } from "./scenes/choice-test"
import { sceneKalterKaffee } from "./scenes/kalter-kaffee"
const script: Script = {
scenesById: new Map()
@ -13,6 +14,7 @@ script.scenesById.set(scenePreStart.id, scenePreStart)
script.scenesById.set(sceneTutorialKettensaege.id, sceneTutorialKettensaege)
script.scenesById.set(sceneTutorialMuesli.id, sceneTutorialMuesli)
script.scenesById.set(sceneTutorialVorhang.id, sceneTutorialVorhang)
script.scenesById.set(sceneKalterKaffee.id, sceneKalterKaffee)
script.scenesById.set(sceneChoiceTest.id, sceneChoiceTest)
export { script }

View file

@ -0,0 +1,51 @@
import type { SceneDefinition } from "../types"
import { defineInteractionScene } from "../types"
import { Temporal } from "temporal-polyfill"
export const sceneKalterKaffee: SceneDefinition = defineInteractionScene({
id: "kalter-kaffee",
label: "Kaffeetrinken",
type: "interaction",
plannedDuration: Temporal.Duration.from({ minutes: 8 }),
objects: {
"gameboy": {
label: "Gameboy",
reveal: true
},
"kaffeetasse": {
label: "Kaffeetasse",
reveal: true
},
"escobar": {
label: "Escobar",
reveal: true
},
"mikrowelle": {
label: "Mikrowelle",
reveal: true
},
"kaffeebohnen": {
label: "Kaffeebohnen",
reveal: true
},
"radio": {
label: "Radio",
reveal: true
},
"hammer": {
label: "Hammer",
reveal: true
},
"zahnrad": {
label: "Zahnrad",
reveal: false
},
"antenne": {
label: "antenne",
reveal: false
},
},
interactions: [
]
})