Skip to content

A game framework to build extensible player interactions.

License

Notifications You must be signed in to change notification settings

Soleone/questing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tests status MIT license Last commit

Questing

A game framework to build extensible player interactions. Developed to run in the Bun environment.

Usage

  1. Install Bun
  2. Clone repo
  3. bun install
  4. bun src/game.ts

Fundamentals

  • Players move between Locations
  • Locations can have items (e.g. furniture)
  • Items can have sub-items (independent of the parent item) and properties (part of the parent item)
  • LocationMap links locations together to determine connections
  • Actions take a Game as arguments (to be able to act on anything) and return a Reaction

Features

  • Targetting (location to move, item from inventory to combine with location item)
  • Moving between locations
  • Item state

TODO

  • Item definitions vs item instances (e.g. multiple batteries)
  • Immediately show adjacent locations when looking around
  • Select property and open it
  • Pick up items
  • Focussing items
  • Readable Pages and Books
  • Look around
    • location
    • description
    • adjacent locations
    • items
  • Openable containers that have their items hidden otherwise
  • Turn into visual Remix app
  • More tests

Contributing

  • bun test to run all tests
  • You can play around in src/old/example.ts to get started

About

A game framework to build extensible player interactions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published