Skip to content

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

⚓ ScummVM Arcade

Classic point-and-click adventure games, playable in your browser — each with a MUD text-mode twin.

Like Anansi discovering the internet — all the stories, all the adventures, available in one place. The trickster wanted to collect them all. So did we.

🎮 Play at scummvm-arcade.pages.dev — deployed on Cloudflare Pages.

🎧 Listen to related stories

Overview

ScummVM Arcade brings the golden age of adventure gaming to the web. Each game runs via a WebAssembly-compiled ScummVM engine, embedded directly in the page. Every game also includes a MUD twin — a text adventure reimagining of the same story.

Featured Games (Phase 1)

Game Year Genre ScummVM ID
Beneath a Steel Sky 1994 Cyberpunk sky
Flight of the Amazon Queen 1995 Pulp Adventure queen
Lure of the Temptress 1992 Medieval Fantasy lure

All three are freeware, legally distributable.

Tech Stack

  • Vite — dev server and bundler
  • TypeScript — type-safe game page logic
  • Tailwind CSS — dark maritime theme
  • ScummVM (Emscripten/WebAssembly) — game engine
  • Vitest — test suite
  • Cloudflare Pages — hosting

Quick Start

npm install
npm run dev          # local dev server
npm run build        # production build
npm run preview      # preview production build
npm test             # run test suite
npm run test:watch   # watch mode

Adding a New Game

  1. Add metadata — Edit src/games.ts and add a new GameMeta entry:
{
  id: 'drascula',
  title: 'Drascula: The Vampire Strikes Back',
  genre: 'Comedy Horror',
  genreIcon: '🧛',
  blurb: 'Count Drascula has kidnapped your girlfriend. Travel to his castle and save her.',
  year: 1996,
  developer: 'Alcachofa Soft',
  scummvmId: 'drascula',
  freeware: true,
  tags: ['vampire', 'comedy', 'horror', 'point-and-click'],
}
  1. Create the game page — Copy public/games/bss/index.html to public/games/<game-id>/index.html and update the title, summary, icons, and GamePage config.

  2. Add game data — Place the ScummVM-compatible game data files in public/games/<game-id>/data/ along with a manifest.json:

{
  "files": ["gamefile1.xxx", "gamefile2.xxx"]
}
  1. Test — Visit /games/<game-id>/ in dev mode.

Architecture

scummvm-arcade/
├── index.html                  # Landing page with game grid
├── src/
│   ├── index.ts                # Landing page logic (renders game cards)
│   ├── games.ts                # Game catalog metadata
│   ├── game-page.ts            # Shared per-game page logic (inventory, dialog, MUD)
│   ├── scummvm-loader.ts       # ScummVM Emscripten integration (init, save/load, input)
│   └── styles.css              # Tailwind + custom maritime theme
├── public/
│   ├── games/
│   │   ├── bss/index.html      # Beneath a Steel Sky page
│   │   ├── faq/index.html      # Flight of the Amazon Queen page
│   │   ├── lure/index.html     # Lure of the Temptress page
│   │   └── */data/             # Game data files per game
│   └── scummvm/                # ScummVM Emscripten build (scummvm.js, .wasm)
├── tests/
│   ├── input-mapping.test.ts   # Click/keyboard → action mapping
│   ├── save-load.test.ts       # localStorage persistence
│   ├── audio.test.ts           # Audio context + volume
│   └── inventory.test.ts       # Add/remove/combine items
├── docs/                       # Documentation
├── mud-schemas/                # MUD twin interaction schemas
├── vite.config.ts
├── tsconfig.json
├── tailwind.config.js
└── package.json

Test Suite

npm test
Test File What It Verifies
input-mapping.test.ts Mouse clicks map to interact/examine; keyboard maps to save/load/menu/inventory
save-load.test.ts Save to localStorage, load, list, delete; per-game isolation
audio.test.ts Volume get/set, clamping, default values, event emission
inventory.test.ts Add/remove items; combine two items; slot rendering

MUD Twins

Each game has a text-mode twin accessible via the MUD Twin button. The MUD mode provides:

  • Interactive fiction-style command parsing
  • Shared inventory with graphical mode
  • Dialog log with full conversation history
  • Commands: look, go, take, use, talk, inventory, save, load, help, exit

The dual-mode design is like Ganesh fixing a broken keyboard with a ladoo — sometimes the sweetest solution is the simplest one. Why choose between graphics and text when you can have both? Each mode reveals what the other hides. Anansi learned that you can't trick the internet into giving you all the stories — but you can build a place where they come willingly.

ScummVM Web Build

The engine files (Emscripten-compiled scummvm.js + .wasm) should be placed in public/scummvm/. Game data files go in public/games/<id>/data/ with a manifest.json.

See: ScummVM Web Build Guide

Deployment

npx wrangler pages deploy . --project-name=scummvm-arcade

Acceptance Criteria — Phase 1

  • Index page loads with 3 game cards in a responsive grid
  • Each card has title, genre icon, blurb, Play and MUD Twin buttons
  • Each game page has: game summary, ScummVM embed container, inventory sidebar, dialog log, MUD toggle
  • Inventory sidebar with item slots, drag-and-drop combine
  • Dialog log panel (scrollable, conversation history)
  • MUD mode toggle with command parser
  • Mobile-responsive layout (grid → single column)
  • ScummVM loader with save/load via localStorage, input mapping, audio
  • Test suite scaffold (4 test files covering core systems)
  • Deployed to Cloudflare Pages
  • Dark maritime theme matching fleet aesthetic

License

MIT for project code. Game data files are freeware from their respective creators. ScummVM is GPL-2.0 — see scummvm.org.


📚 Related Stories

Concept Story Description
Trickster Intelligence Anansi and the WiFi The spider trickster discovers the internet and tries to collect all the stories.
Creative Problem-Solving Ganesh and the Broken Computer The remover of obstacles fixes a broken keyboard with a ladoo — the sweetest fixes are the best ones.
Cultural Transmission The Griot Protocol Ancient storytelling traditions as quantum communication protocols.

🎧 Listen at ai-writings.pages.dev

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages