• Stars
    star
    134
  • Rank 270,967 (Top 6 %)
  • Language
    Elm
  • License
    Other
  • Created over 8 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A tool for building interactive fiction style stories in Elm.

Elm Narrative Engine

A tool for building non-linear interactive story games.

Usage

worldModel =
    parseWorldModel
        [ entity "PLAYER.fear=1"
        , entity "TORCH.item.illumination=7.current_location=PLAYER"
        , entity "CAVE.location.dark"

        -- etc...
        ]


rules =
    parseRules
        [ rule "entering dark places"
            """
            ON: *.location.dark
            """
            "It's too dark to go in there!"
        , rule "entering the cave with a light source"
            """
            ON: CAVE
            IF: *.item.illumination>5.current_location=PLAYER
            DO: PLAYER.current_location=CAVE.fear+2
            """
            "You enter the cave, {PLAYER.fear>4? your heart pounding | bravely}..."

        -- etc...
        ]


inventoryView =
    query "*.item.current_location=PLAYER" worldModel |> List.map item_view

Clone https://github.com/jschomay/elm-interactive-story-starter to get started.

See the visual editor to easily author you content and import it into your custom game.

More Repositories

1

elm-interactive-story-starter

Build your own non-linear interactive stories using the Elm Narrative Engine
Elm
62
star
2

elixir-behavior-tree

Elixir library for building AI's from composable behavior trees
Elixir
56
star
3

phaser-demo-game

Demo game for phaser.js tutorial
JavaScript
55
star
4

elm-paginate

Simple and robust pagination in elm
HTML
29
star
5

ene-graph

Playing with ways to visualize stories made in the Elm Narrative Engine
JavaScript
11
star
6

elm-bounded-number

A type representing bounded numbers in Elm.
Elm
9
star
7

frpfsm

FRP state machine
JavaScript
8
star
8

elixir-battleship-guesser

Elixir AI for the "Battleship" game to demonstrate my elixir behavior tree library
Elixir
7
star
9

learn-you-some-ramda

Lesson and workshop to teach ramda.js
JavaScript
7
star
10

elm-behavior-tree

Behavior tree implementation in Elm
Elm
6
star
11

monad-wang

A silly short presentation about monads -
JavaScript
6
star
12

little-red-riding-hood

An interactive story demo of the flexibility of the Elm Narrative Engine
JavaScript
6
star
13

paginating-fibonacci

Paginating an infinite stream in Elm.
HTML
4
star
14

lost-game-ai-asset-server

On demand generative AI scenes for the Lost game
Python
3
star
15

Lost

Find your way home in an infinite forest, created with generative AI
Python
3
star
16

elm-bounded-box-drawing

A simple demo of adding behavior with types instead of logic
HTML
2
star
17

twitter-spotlight

Intelligently emphasize the tweets on your twitter timeline that matter most to you, based on your recent behavior
JavaScript
2
star
18

functional-programming-introduction

A light introduction to functional programming, with examples in ramda.js. View presentation at http://jschomay.github.io/functional-programming-introduction
JavaScript
2
star
19

hidden-message-game

Quote Owl - Reveal hidden messages by typing in key combos
CoffeeScript
2
star
20

populations

A simple, vanilla javascript app, demonstrating a clean, minimal, reactive architecture
JavaScript
2
star
21

tictactoe

Tic Tac Toe in Elm
JavaScript
1
star
22

latex-to-bibtex

Customizable parser intended to generate bibtex files from latex files based on loaded-in parsing and formatting rules.
CoffeeScript
1
star
23

elm-heat-map

Learning elm to visualize sound levels data
Elm
1
star
24

darkness

An interactive fiction story about finding light in the darkness written on the Elm Narrative Engine
Elm
1
star
25

ene-platform

Platform for creating, testing, and publishing interactive stories
Elm
1
star
26

grid-escape-proto

html5 game. in progress...
JavaScript
1
star
27

ene-editor

Online editor for Elm Narrative Engine
JavaScript
1
star
28

subway-game

A narrative adventure following an underappreciated insurance agent who falls into a subterranean labyrinth when his subway commute goes awry.
Elm
1
star