Giter VIP home page Giter VIP logo

scenario-game's Introduction

Game Story Syntax

Nodes

First will be node number, which has to be unique integer. Node number 0 is reserved for exit.

Images

If image is to be change keep the image location inside <>.

Story Text

Write the texts normally you can also have newline characters. But not in the action texts. Any consecutive white spaces will be ignored. Feel free to use them to manage the story syntax.

Dynamic Text

NOTE: Not implemented yet.

You can have dynamic texts like character names and such. use them inside {}. If you want to specify the user to enter the dynamic variable enter it with $ character. inside braces {}.

Delay

If you want delay between the texts insert number between [] like in the example below. The unit for delay is in milliseconds. You can also use this to show a series of multiple images.

Choices

Write the node number it should go now inside (). Write choices with () and text can have multiple paths available. All choices should be written in a single line. Whether it is single or multiple the user is asked to choose/continue.

Ending lines

Newline character will end the node when actions has been detected. If the newline is found before any actions then it is just considered part of the text and has no effect.

Also you can’t break the lines between the actions, as it will consider the node to be finished when it reads a action on a line.

Game Story Example Lines

The examples are inside the data directory.

TODOs

  • Make a storyline checking program (for dangling endpoints).
  • Make it generate compiled code from the story if possible.

Future plans

  • Add sound effects (parallel execution)

scenario-game's People

Contributors

atreyagaurav avatar

Watchers

James Cloos avatar  avatar

Forkers

jarnachao09

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.