Git Product home page Git Product logo

line-bot-rpg's Introduction

使用說明書(WIP)

檔案結構

data
|- file
|- imagemap
|- message
|- story
setup
|- richmenu-set
|- index.js

data/file

file  
|- menu
    |- <介面名稱>
        |- 240
        |- 300
        |- 460
        |- 700
        |- 1040
    |- <介面名稱2>
        |- 240
        |- 300
        |- 460
        |- 700
        |- 1040
    |- ……
|- ……
|- ……

用於放置要讀取的檔案,格式不限,可以自行新增資料夾,但一定要有menu資料夾,詳見介面節。

data/imagemap

imagemap
|- <介面名稱>.json
|- <介面名稱2>.json
|- ……
    |- ……
|- ……
|- ……

用於放置影像地圖訊息的設定資料,可以自行新增資料夾,但一定要有介面資料,詳見介面節。

內容以json儲存,typebaseUrl需省略。

data/message

message
|- welcome.json
|- alttext.json

系統訊息,目前只有welcome.jsonalttext.json兩者。

welcome.json

在加入好友時發出。

alttext.json

用於特殊訊息之替代文字。

data/story

story
|- index.json
|- begin
    |- index.json
    |- <故事檔案a>.json
    |- <故事檔案b>.json
    |- <故事檔案c>.json
    |- ……
|- <stageA>
    |- index.json
    |- <故事檔案a>.json
    |- <故事檔案b>.json
    |- <故事檔案c>.json
    |- ……
|- <stageB>
    |- index.json
    |- <故事檔案a>.json
    |- <故事檔案b>.json
    |- <故事檔案c>.json
    |- ……
|- ……

故事主體,放置故事資料的地方。

必須有資料夾begin

以下設<stageA>stageA<故事檔案c>故事檔案c,依此類推,用以舉例。

index.json

["begin","stageA","stageB","stageC","stageD"]

列出story旗下的所有資料夾,無實際效果,僅作程式遍歷用。

<stage>/index.js

["故事檔案a.json","故事檔案b.json","故事檔案c.json"]

列出<stage>旗下的所有故事檔案,在故事檔案執行結束時,將依此順序移動至下個檔案。

故事檔案

格式說明

line-bot-rpg's People

Contributors

leo-768 avatar

Stargazers

 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.