Giter Site home page Giter Site logo

penyo-gal-framework's Introduction

欢迎使用 PGF

PGF(Penyo Gal Framework)提供了一种基于 Web 的朴素办法,显示文字、图片,并在同一界面播放音频,业界中常称其为 GalGame。这也是我们打算入手的第一类 Video Game,因为技术上实现较为简单。 与市面上普遍的 GalGame 相比,本项目计划具备较为完善的数据管理机制、交互机制。初期预备设计开始界面、游戏界面、设置界面、背景介绍界面四大分支。 Penyo 对 PGF 全部内容保有权利:没有引用任何商业或强制开源许可项目,且 PGF 并不打算在短期内开源。基于 PGF 创作的艺术型项目,版权总是属于 Penyo,除非额外书面商议。您一旦使用了 PGF 就视为您同意这一切。

数据管理标准

为了规范化数据和媒体文件,您需要了解数据的管理标准。

剧本标准

剧本统一存放在data文件夹中。

若剧本是无分支的,其名称应当类似于 chapter-章数-幕数.json。如第四章第一幕

chapter-4-1.json

若剧本有分支,则剧本的每一个分支都应该作为独立文件出现,其名称应当类似于 chapter-章数-幕数+分支代号.json。如第四章第二幕第一分支

chapter-4-2a.json

多分支中,剧本重复的部分只需要视为一个无分支的剧本,分支剧本中只需要包含其专有的内容。如第四章第三幕一开始是没有分支的,后来才出现了两个分支,那么就应该有三个文件存在:

chapter-4-3.json
chapter-4-3a.json
chapter-4-3b.json

帧标准

剧本文件的基本单位是,有标准帧分支选择帧两种。它们的构造分别如下:

{
    "type": "std",
    "bg": {
        "pic": null,
        "music": null,
        "effect": null
    },
    "roleL": {
        "pic": null,
        "vocal": null,
        "effect": null
    },
    "roleR": {
        "pic": null,
        "vocal": null,
        "effect": null
    },
    "text": {
        "speaker": null,
        "body": ""
    },
    "soundEffect": null,
    "isFinalFrame": false
}
{
    "type": "slt",
    "options": [
        {
            "name": "",
            "operation": ""
        },
        {
            "name": "",
            "operation": ""
        }
    ],
    "isFinalFrame": false
}

媒体标准

媒体统一存放在media文件夹中。按照媒体的类型,它们又可被分为graphmusicvocalsound等分支。

背景图片一律裁切为1280*720像素的JPEG文件,其名称应当类似于 bgi-场景名称.jpeg。如学校夜晚场景

bgi-school_evening.jpeg

人物立绘一律裁切为正方形的PNG文件,但必须是全身像,且人物的头顶和脚跟刚好抵住图片边界,其名称应当类似于 img-角色名-状态.png。如东海帝王生气的样子

img-tokai_teio-angry.png

人物语音一律为16bit起的WAV文件,其名称应当类似于 voc-角色名-台词概要.wav。如特别周呼喊无声铃鹿

voc-special_week-calling_silence_suzuka.wav

penyo-gal-framework's People

Contributors

penyoofficial 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.