Endings & extras

What the player unlocks for good: the endings list and completion, the gallery, scene replay, movies and the music room.

Endings list and completion

Extras has an Endings tab (reached ones with their description, the others with their hint; secret ones only once reached) and shows “Found 42%” at the top.

// src/content/scenes.ts
completion: { show: true, count: ['endings', 'gallery', 'movies', 'music', 'achievements'] },

game.extras.completion()   // { percent, found, total, parts: { endings: { found, total }, … } }

Extras: gallery, scene replay, movies, music room

// src/content/gallery/hill/index.ts
import image from './image.png'
export default defineGallery({ title: 'The hill', image /*, thumbnail */ }) // thumbnail: made for you

cg('hill') … cg(null)                  // in an event: show it, and unlock it in the gallery
cg('pond_memory', 'full_moon')         // a variant of a layered CG (art → layered CGs)

// Replayable: listed in Extras → Scenes once the player has finished it (also when run inside another event with event())
export default defineEvent({ title: 'The pond', replay: 'The pond', run: async (ctx) => { … } })

// With a picture on its card (next to the event's index.ts):
import preview from './preview.png'
export default defineEvent({ title: 'The pond', replay: { title: 'The pond', preview }, run: … })