Skip to content

qualityshepherd/phoney

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHONEY

A retro phone/answering machine game engine for creating your own games!

Play

  1. Start server: npm run server
  2. Open browser: http://localhost:4242
  3. Press # in-game to switch games

Features

  • Operator Menu (Dial 0)

    • Auto-generated directory from keywords
    • Discovered numbers list
    • Duck quack easter egg
  • *69 Last Call Return

    • Trace mysterious incoming calls
  • Game Switching (Press #)

    • Multiple games
    • Persistent save states
  • Audio Synthesis

    • DTMF tones (Web Audio API)
    • No external audio files needed
    • Synthesized duck quack

Testing

Run Unit & E2E Tests

  • npm test

Creating A Game

Add a new game in data/:

export const GAME_DATA = {
  config: {
    title: 'Your Mystery Title',
    description: 'Opening text that hooks the player',
    startingNumbers: ['5551234'],
    victoryMessage: 'Case closed!'
  },
  phoneDirectory: {
    5551234: {
      name: 'Contact Name',
      keywords: ['detective', 'police', 'help'],
      transcript: 'What they say when you call',
      unlocksNumbers: ['5559999'],  // Next clue
      solvesMystery: false          // true for final call
    }
  }
}

Then add to data/game-registry.js:

{
  id: 'your-mystery',
  title: 'Your Mystery Title',
  description: 'Short description',
  difficulty: 'Medium'
}

About

A retro phone answering machine game...

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published