Skip to content

Text Quest is a game engine for running text-based adventure games, using a low/no code approach to game design.

Notifications You must be signed in to change notification settings

dillen-hub/text-quest

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Text Quest: Unlock your imagination

Visit the textquest.io website or play one of the games:

 _             _                          _
| |_ _____   _| |_   __ _ _   _  ___  ___| |_
| __/ _ \ \/ / __|  / _` | | | |/ _ \/ __| __|
| ||  __/>  <| |_  | (_| | |_| |  __/\__ \ |_
 \__\___/_/\_\\__|  \__, |\__,_|\___||___/\__|
                       |_|

                       Unlock your imagination.

Overview

Text Quest is a game engine for running text-based adventure games, using a low/no code approach to game design.

A hosted version of the demo game The Sleepy Traveller (v1.1) can be found at: textquest.io.

Motivation

The project was started to...

  • Inspire creative story writing (without images, CGI or video)
  • Create a low/no code solution for building games (using YAML)
  • Bootstrap something as quickly as possible to test the above (and not get bogged down with tooling, libraries and frameworks)
  • Provide a little escapism during these unusual times

Game Design

Games are defined using YAML. A sample game can be seen in ./game.yml).

Here's an overview of the core concepts within a games:

  • Blocks: A block represents a single location within the game. A block can have:
    • exits: Connections to other blocks
    • states: Variations for a block state (containing exits, actions, items)
    • items: Items which are 'visible' from within a block state
    • actions: Actions which can be performed by the player within a block state, and actions which can be triggered automatically based on what a player is carrying
  • Game: The name, version and author for the game
  • Player: The name, current block location, powers and items they are carrying
  • Powers: Descriptions for powers a player can unlock (not listed here, as they are part of the game)
  • Items: Descriptions for items which the player can carry, or can be found in a block

Technical Details

This project currently uses:

  1. JavaScript as the core programming language for the game engine
  2. Parcel web application bundler
  3. text-terminal for the terminal interface
  4. YAML to store the game configuration
  5. js-yaml for YAML > JSON conversion
  6. ascii generator for the logo
  7. github-fork-ribbon-css

Development: Getting Started

  1. Run npm i: To install the dependencies
  2. Run npm start and open localhost:1234 in a browser to view the live reload development server
  3. Changes in the ./src directories will cause a live reload and compiled files to ./dist
  4. Press CTRL+c to stop the development server

TODO

  1. Introduce characters as a concept (and associated powers)
  2. Cross over with voice activation project
  3. Upload/point to yaml URL
    1. Auto conversion yaml > JSON
    2. Game yaml validator
  4. Create a supporting website with docs and links to games
  5. Online game editor (visual, or text based)

About

Text Quest is a game engine for running text-based adventure games, using a low/no code approach to game design.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 70.3%
  • HTML 10.5%
  • SCSS 9.7%
  • Pug 9.5%