GithubHelp home page GithubHelp logo

line-bot-gamebook's Introduction

Gamebook for LINE

LINE上で、選択肢を選ぶことで進行するゲームを作ることができるフレームワークです。(いわゆるゲームブックを作るためのものです) LGScriptというDSLにスクリプトを書くことで、ゲームを作れます。

LGScript

LINEトークを制御する独自のDSLです。

機能

  • 友達になったらゲームをスタート
  • 時間差をつけてトークを送信
  • 選択しでストーリー分岐
  • 指定待ち時間後にトークを送信
  • 文字数に合わせて自動でトーク送信速度を変える

文法

  • "@" でコマンドを実行
    • @buttons 質問して分岐させる。@endまでの選択肢を抽出。
    • @end ゲーム終了
    • @wait 1m @wait 1h 1分、1時間待ってから次のトークを送信
  • "*" でアドレス設定
  • "[]" で指定アドレスまでジャンプ
    • [*hoge] *hogeまでジャンプ

記述例

*start
こんにちは
これは文法の例です
1行1行、3sくらい待ちながら出力します。
@buttons 分岐機能もできます
- [*state1] 分岐1に行きます
- [*state2] 分岐2に行きます
@end

*state1
普通のルートです
あまりに普通です
[*common]

*state2
やばいルートです
危険すぎます
@buttons 分岐2です
- [*common] 共通ルートへ
- [*state3] 隠しルートへ
@end

*state3
少し待って見ます
@wait 30s
隠しルートです
@buttons 分岐3です
- [*common] 共通エンディングへ
- [*hidden] 隠しエンディングへ
@end

*common
空白を 開けて みます
おしまいです
@end

*hidden
隠しエンディングです
@end

line-bot-gamebook's People

Contributors

mituoh avatar

Stargazers

Yusaku Senga avatar

Watchers

 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.