1.5.2 • Published 7 months ago

@drincs/pixi-vn-json v1.5.2

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
7 months ago

Pixi’VN + Json Integration

pixi-vn-cover-json

Pixi’VN can be integrated with JSON files to create a visual novel. This method is useful for:

  • Add a new narrative to Pixi’VN (It was used to create the integration with Ink and Ren'Py)
  • Create a external tool to create visual novels with Pixi’VN

( In both these cases it is advisable to notify the developers of Pixi’VN to add the new feature to be helped )

Pixi’VN + Json Integration

How use Pixi’VN + Json?

First of all you need to install the following library:

# npm
npm install @drincs/pixi-vn-json

# yarn
yarn add @drincs/pixi-vn-json

# pnpm
pnpm add @drincs/pixi-vn-json

# bun
bun add @drincs/pixi-vn-json

All you need to do to use this integration is create a object using the PixiVNJson Model and use the importPixiVNJson() function to import the object.

import { PixiVNJson, importPixiVNJson} from '@drincs/pixi-vn-json';

let obj: PixiVNJson = {
    labels: {
        back_in_london: [
            {
                dialogue: "We arrived into London at 9.45pm exactly.",
            },
            {
                labelToOpen: {
                    label: "hurry_home",
                    type: "jump",
                },
            },
        ],
        hurry_home: [
            {
                dialogue: "We hurried home to Savile Row as fast as we could.",
            },
            {
                end: "label_end",
            },
        ]
    }
}

importPixiVNJson(obj);

After that you can run the back_in_london label with Pixi’VN functions.

narration.callLabel(`back_in_london`, {})

PixiVNJson Model

You can see the PixiVNJson model in the PixiVNJson.ts file.

Now PixiVNJson is currently in continuous change, more documentation will be written in the future.

1.2.0

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.2.7

12 months ago

1.2.6

12 months ago

1.1.7

1 year ago

1.5.2

7 months ago

1.2.5

1 year ago

1.1.6

1 year ago

1.5.1

8 months ago

1.2.4

1 year ago

1.1.5

1 year ago

1.5.0

8 months ago

1.4.1

9 months ago

1.2.3

1 year ago

1.1.4

1 year ago

1.4.0

9 months ago

1.3.1

10 months ago

1.2.2

1 year ago

1.1.3

1 year ago

1.3.0

11 months ago

1.2.1

1 year ago

1.1.2

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago