diff --git a/src/pages/dialog.svelte b/src/pages/dialog.svelte index 22b6689..77e2d61 100644 --- a/src/pages/dialog.svelte +++ b/src/pages/dialog.svelte @@ -160,7 +160,11 @@
{#if background} - + {#if d.flags && d.flags.includes("prologue")} + + {:else} + + {/if} {/if} {#if art} @@ -171,7 +175,7 @@
{#if character}

{character.name}, {character.title}

- {:else} + {:else if !d.flags || !d.flags.includes("prologue")}

???

{/if} {#if d.text} @@ -189,8 +193,7 @@ {#each d.buttons as button, i} {/each} - {/if} - {#if d && d.flags && d.flags.includes("chapters") && chaptersDone.length} + {:else if d && d.flags && d.flags.includes("chapters") && chaptersDone.length}
{#each Object.keys(chapters) as chapter, i}
select(i)} class:active={chaptersDone && chaptersDone.includes(chapter)}> @@ -198,6 +201,8 @@
{/each}
+ {:else} + {/if}
{#if success} @@ -243,11 +248,12 @@ max-height: 50vh; } .text p { + margin-top: 10px; font-size: inherit; } h1 { color: #FFFCBE; - margin: 10px 0; + margin: 10px 0 0 0; text-align: center; letter-spacing: 2px; } @@ -332,6 +338,10 @@ width: 100%; object-fit: none; } + .background .prologue-bg { + height: 90%; + box-shadow: -5px -5px 0 0 #DFCA96; + } .background .character { height: 100%; bottom: 0px; diff --git a/src/stores/dialog.js b/src/stores/dialog.js index ce6d398..ba45205 100644 --- a/src/stores/dialog.js +++ b/src/stores/dialog.js @@ -1,4 +1,5 @@ export const chapters = { + prologue: 0, uriel: 1, michael: 2, uziel: 3, @@ -9,7 +10,7 @@ export const chapters = { /** * @type {{ * name: string, - * background: "menu" | "heaven" | "hell", + * background: "menu" | "heaven" | "hell" | "prologue1" | "prologue2" | "prologue3" | "prologue4", * character: typeof import("./characters").characters[number]["name"], * text: string, * next?: string, @@ -18,7 +19,7 @@ export const chapters = { * chapter?: keyof typeof chapters, * chapterStart?: keyof typeof chapters, * buttons: { text: string, next: string }[], - * flags?: ("nosave" | "chapters" | "menu" | "success" | "failure")[] + * flags?: ("nosave" | "chapters" | "menu" | "success" | "failure" | "prologue")[] * }[]} */ export const dialog = [{ @@ -55,7 +56,7 @@ export const dialog = [{ text: "", buttons: [{ text: "Start", - next: "uriel_entrance" + next: "prologue1" }, { text: "Chapter select", next: "chapters" @@ -69,6 +70,31 @@ export const dialog = [{ alt: "You must first complete a chapter to be able to solve it.", next: "menu", flags: ["chapters", "nosave"] +}, { + name: "prologue1", + chapterStart: "prologue", + background: "prologue1", + text: "The successful corruption of a certain angel gives Lucifer, the CEO of hell, an idea.", + next: "prologue2", + flags: ["prologue"] +}, { + name: "prologue2", + background: "prologue2", + text: "She sent you to heaven with the help of a certain nearly corrupted angel in order to find a cure, but in reality she sent you to bring a few more angels back so she could \"befriend\" them.", + next: "prologue3", + flags: ["prologue"] +}, { + name: "prologue3", + background: "prologue3", + text: "But you decided to go big or go home and kick down the front gate of heaven to take the big league archangel or even the master of heaven herself.", + next: "prologue4", + flags: ["prologue"] +}, { + name: "prologue4", + background: 'prologue4', + text: "But after seeing the first angel, you decide to run to the back gate like Lucifer originally planned.", + next: "uriel_entrance", + flags: ["prologue"] }, { name: "uriel_entrance", chapterStart: "uriel",