Back to Outbreak: Soycoon City
SOURCE / PINNED RELEASE

Made of little things.

Outbreak: Soycoon City

Release
db7750b1d009…
Author-recorded commit
3ee3f5fd27a6…
License
LICENSE
Author’s source reference
nostr://npub182jczunncwe0jn6frpqwq3e0qjws7yqqnc3auccqv9nte2dnd63scjm4rf/wss%3A%2F%2Fgit.napplet.soy%2F/n-b87c04571a9

Archive hash verified: dbebdc772b142a1c…. The source-to-build association is the author’s claim; it has not been independently rebuilt.

src/napplet-settings.ts
import { config } from '@napplet/sdk';
import { runtimeHasDomain } from './domain-availability.js';
import settingsSchema from '../config.schema.json';
export let renderWidth = 480;
if (runtimeHasDomain('config')) {
  void (async () => {
    if (!config.schema) await config.registerSchema(settingsSchema as Parameters<typeof config.registerSchema>[0]);
    const subscription = config.subscribe(values => {
      renderWidth = values.resolution === '320 × 240' ? 320 : values.resolution === '640 × 480' ? 640 : 480;
      document.documentElement.style.setProperty('--scanline-opacity', values.scanlines === false ? '0' : '1');
    });
    window.addEventListener('pagehide', () => subscription.close(), { once: true });
  })().catch(() => { /* The local PS1 defaults remain usable when settings are absent. */ });
}