Skip to content

Commit

Permalink
Add two new cutscenes
Browse files Browse the repository at this point in the history
  • Loading branch information
albrow committed Feb 20, 2024
1 parent bba9e9d commit 606b933
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion web/lib/dialog_trees/level_partly_disabled_movement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const NODES: {
[key in NodeIds]: DialogNode;
} = {
grover_is_damaged: {
text: "Oh no! It looks like G.R.O.V.E.R has sustained some damage from the last encounter.",
text: "Oh no! It looks like G.R.O.V.E.R has sustained some damage from an undetected asteroid!",
choiceIds: ["ask_if_grover_okay", "ask_grover_damage_details"],
},
reassure_grover_is_okay: {
Expand Down
2 changes: 2 additions & 0 deletions web/lib/scenes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ const RAW_SCENES: RawScene[] = [
"Feel free to copy & paste pieces of code from previous levels or journal pages.",
]
),
cutsceneScene("grover_damaged"),
levelScene("partly_disabled_movement"),
journalScene("creating_functions"),
levelScene(
Expand All @@ -284,6 +285,7 @@ const RAW_SCENES: RawScene[] = [
"You just need to finish the body of the `three_lefts` function. Then the rest of the code should work.",
]
),
cutsceneScene("grover_repaired"),
// Temporarily disable arrays because the concept is not super fleshed out yet.
// May decide to re-enable later.
//
Expand Down
16 changes: 16 additions & 0 deletions web/routes/cutscene.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,22 @@ export default function Cutscene(props: CutsceneProps) {
navigateToHub();
},
},
grover_damaged: {
vimeoVideoId: 914609393,
youTubeVideoId: "ZUESwBuuePY",
localVideoUrl: getLocalVideoUrl("grover_damaged"),
navigateOnEnd: () => {
navigateToHub();
},
},
grover_repaired: {
vimeoVideoId: 914609399,
youTubeVideoId: "bwjOIaBQhEw",
localVideoUrl: getLocalVideoUrl("grover_repaired"),
navigateOnEnd: () => {
navigateToHub();
},
},
midgame: {
vimeoVideoId: 878140313,
youTubeVideoId: "TUl2pIq0vjA",
Expand Down

0 comments on commit 606b933

Please sign in to comment.