Giter Site home page Giter Site logo

bcaccinolo / elm-narrative-engine Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jschomay/elm-narrative-engine

0.0 2.0 0.0 1013 KB

A framework for building interactive fiction style stories in Elm. More information and sample stories at http://elmnarrativeengine.com/

License: BSD 3-Clause "New" or "Revised" License

Elm 100.00%

elm-narrative-engine's Introduction

Elm Narrative Engine

A unique tool for telling interactive stories.

Features

  • Context-based rule-matching system for immersive and responsive stories
  • Extremely flexible and extensible, see the sample stories below for examples!
  • Total separation of logic, presentation, and content
  • Data-driven and declarative
  • Designed to work with the Entity Component System pattern
  • Possible to integrate with other tools including visual editors and other game frameworks

Sample Stories

Play sample stories made with the Elm Narrative Engine

Getting Started

The Elm Narrative Engine is written in the Elm language, and is intended to be embedded in an Elm client app. If you are a developer, this allows for great customization.

You can also get started by cloning https://github.com/jschomay/elm-interactive-story-starter.git as a template that you can modify to get going on your own story.

The main story design happens by designing your rule sets, which look similar to this:

    rules =
       [ { interaction = with "River"
         , conditions =
              [ currentLocationIs "Cottage"
              , itemIsInInventory "Cape"
              , itemIsInInventory "Basket of food"
              ]
         , changes =
              [ moveTo "River"
              , moveCharacterToLocation "Little Red Riding Hood" "River"
              ]
         }
      -- etc
      ]

See the full api and documentation for more details.

I am also currently working on a visual editor that would allow non-developers to simply pick a theme and build their world and rules in a custom online text editor.

Development blog

Follow the development blog for more insights, tutorials, techniques, and information on further development of the engine and tooling.

elm-narrative-engine's People

Contributors

jschomay avatar maorleger avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.