GithubHelp home page GithubHelp logo

jesselawson / campfirejs-prototype Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 19.82 MB

A tiny, pure JS tool for writing interactive stories and experiences.

JavaScript 91.39% HTML 8.61%
javascript storytelling text-based-game-engine interactive-storytelling

campfirejs-prototype's Introduction

Hello ๐Ÿ‘‹๐Ÿผ I like to build and think about developer tools and ecosystems that cultivate curiosity.

Website: https://nullnotes.com

campfirejs-prototype's People

Contributors

jesselawson avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

campfirejs-prototype's Issues

Simplistic, opinionated paradigm for mutable stories

It should be relatively easy to write a quick, mutable story with Campfire.

For example, let's say I want to create a tutorial on how to use it. The tutorial should fit on a single html page, with each tutorial section setup as a .page-# div.

There should be a way to automatically create some kind of inner link with a special identifier that will close the page it's on and open the next page in the sequence.

Perhaps something like this:

<div id="page-1">
<p>Clicking the second link on page 2 takes you here.</p>
</div>

<div id="page-2">
<p>This is page two. Go <a onclick="story.linknext()">here</a> for the next page, or <a onclick="story.linkprev()">here</a> to go back one page.
</div>

<div id="page-3">
<p>Clicking the first link on page 2 takes you here.</p>
</div>

Data saving system. Localstorage? DB?

Campfire should have a way to store data that can be retrieved at a later session.

LocalStorage is an obvious solution, and some discussion should be had as to whether there should be a database connectivity layer. Perhaps this would give rise to some kind of plugin support?

Reference/Query trigger status

Like switches, we should be able to reference a trigger to determine its state.

For example:

story.registerTrigger({
  label: 'created trigger feature',
  trigger: () => { /* something */ },
  then: () => { /* something else */ }

We should be able to query the status of that trigger, like this:

story.triggerStatus('created trigger feature')
// Returns false

or

story.fired('created trigger feature')
// Returns false

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.