@drincs/pixi-vn 0.8.4 → 0.8.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -27
- package/dist/{chunk-T4KKYU4J.js → chunk-4KV6VMUV.js} +92 -6
- package/dist/{chunk-M6X6FHCH.js → chunk-5A543GJ4.js} +2 -2
- package/dist/{chunk-FYCYVQTG.js → chunk-A4NKPUL5.js} +7 -3
- package/dist/{chunk-2FSBBQFF.js → chunk-BHVKSBFZ.js} +2 -2
- package/dist/{chunk-3FJYYZOP.js → chunk-D3ZQSJKZ.js} +292 -33
- package/dist/{chunk-66F5CGHV.js → chunk-DPUSONJ3.js} +1 -1
- package/dist/{chunk-6SZOXEOR.js → chunk-FHNQBWIZ.js} +1 -1
- package/dist/{chunk-MKN3AKFV.js → chunk-FIQXZ3P3.js} +2 -2
- package/dist/{chunk-UWXYEVOE.js → chunk-FM5SFYXO.js} +1 -1
- package/dist/{chunk-WJ5SUJTD.js → chunk-GEWQS6GP.js} +65 -4
- package/dist/{chunk-ENMHDS5Q.js → chunk-GKLIT4GX.js} +2 -2
- package/dist/{chunk-7IWXRHUU.js → chunk-GNFWXAOE.js} +2 -2
- package/dist/{chunk-D3NHF5OS.js → chunk-PIYIZHZL.js} +1 -1
- package/dist/{chunk-DI77NC2O.js → chunk-SZWI2CBA.js} +3 -3
- package/dist/{chunk-CUYGFKNS.js → chunk-TNQKYUOG.js} +2 -2
- package/dist/classes/CharacterBaseModel.cjs +61 -27
- package/dist/classes/CharacterBaseModel.js +5 -5
- package/dist/classes/CharacterStoredClass.cjs +61 -27
- package/dist/classes/CharacterStoredClass.js +5 -5
- package/dist/classes/ChoiceMenuOption.cjs +60 -26
- package/dist/classes/ChoiceMenuOption.d.cts +1 -1
- package/dist/classes/ChoiceMenuOption.d.ts +1 -1
- package/dist/classes/ChoiceMenuOption.js +5 -5
- package/dist/classes/Sound.cjs +60 -26
- package/dist/classes/Sound.js +5 -5
- package/dist/classes/StoredClassModel.cjs +61 -27
- package/dist/classes/StoredClassModel.js +5 -5
- package/dist/classes/canvas/CanvasAVideo.cjs +60 -26
- package/dist/classes/canvas/CanvasAVideo.d.cts +5 -8
- package/dist/classes/canvas/CanvasAVideo.d.ts +5 -8
- package/dist/classes/canvas/CanvasAVideo.js +5 -5
- package/dist/classes/canvas/CanvasBase.d.cts +4 -2
- package/dist/classes/canvas/CanvasBase.d.ts +4 -2
- package/dist/classes/canvas/CanvasContainer.cjs +60 -26
- package/dist/classes/canvas/CanvasContainer.d.cts +7 -6
- package/dist/classes/canvas/CanvasContainer.d.ts +7 -6
- package/dist/classes/canvas/CanvasContainer.js +5 -5
- package/dist/classes/canvas/CanvasImage.cjs +60 -26
- package/dist/classes/canvas/CanvasImage.d.cts +6 -8
- package/dist/classes/canvas/CanvasImage.d.ts +6 -8
- package/dist/classes/canvas/CanvasImage.js +5 -5
- package/dist/classes/canvas/CanvasSprite.cjs +60 -26
- package/dist/classes/canvas/CanvasSprite.d.cts +7 -8
- package/dist/classes/canvas/CanvasSprite.d.ts +7 -8
- package/dist/classes/canvas/CanvasSprite.js +5 -5
- package/dist/classes/canvas/CanvasText.cjs +60 -26
- package/dist/classes/canvas/CanvasText.d.cts +7 -7
- package/dist/classes/canvas/CanvasText.d.ts +7 -7
- package/dist/classes/canvas/CanvasText.js +5 -5
- package/dist/classes/index.cjs +61 -27
- package/dist/classes/index.d.cts +3 -8
- package/dist/classes/index.d.ts +3 -8
- package/dist/classes/index.js +5 -5
- package/dist/classes/ticker/FadeAlphaTicker.cjs +60 -26
- package/dist/classes/ticker/FadeAlphaTicker.d.cts +3 -2
- package/dist/classes/ticker/FadeAlphaTicker.d.ts +3 -2
- package/dist/classes/ticker/FadeAlphaTicker.js +5 -5
- package/dist/classes/ticker/MoveTicker.cjs +60 -26
- package/dist/classes/ticker/MoveTicker.d.cts +3 -2
- package/dist/classes/ticker/MoveTicker.d.ts +3 -2
- package/dist/classes/ticker/MoveTicker.js +5 -5
- package/dist/classes/ticker/RotateTicker.cjs +60 -26
- package/dist/classes/ticker/RotateTicker.d.cts +3 -2
- package/dist/classes/ticker/RotateTicker.d.ts +3 -2
- package/dist/classes/ticker/RotateTicker.js +5 -5
- package/dist/classes/ticker/TickerBase.cjs +60 -26
- package/dist/classes/ticker/TickerBase.d.cts +70 -4
- package/dist/classes/ticker/TickerBase.d.ts +70 -4
- package/dist/classes/ticker/TickerBase.js +5 -5
- package/dist/classes/ticker/ZoomTicker.cjs +60 -26
- package/dist/classes/ticker/ZoomTicker.d.cts +4 -3
- package/dist/classes/ticker/ZoomTicker.d.ts +4 -3
- package/dist/classes/ticker/ZoomTicker.js +5 -5
- package/dist/classes/ticker/index.cjs +60 -26
- package/dist/classes/ticker/index.d.cts +3 -2
- package/dist/classes/ticker/index.d.ts +3 -2
- package/dist/classes/ticker/index.js +5 -5
- package/dist/constants.cjs +11 -6
- package/dist/constants.d.cts +7 -2
- package/dist/constants.d.ts +7 -2
- package/dist/constants.js +5 -3
- package/dist/decorators/canvas-element-decorator.cjs +60 -26
- package/dist/decorators/canvas-element-decorator.d.cts +3 -1
- package/dist/decorators/canvas-element-decorator.d.ts +3 -1
- package/dist/decorators/canvas-element-decorator.js +5 -5
- package/dist/decorators/event-decorator.d.cts +2 -1
- package/dist/decorators/event-decorator.d.ts +2 -1
- package/dist/decorators/index.cjs +60 -26
- package/dist/decorators/index.d.cts +6 -4
- package/dist/decorators/index.d.ts +6 -4
- package/dist/decorators/index.js +5 -5
- package/dist/decorators/label-decorator.cjs +60 -26
- package/dist/decorators/label-decorator.js +5 -5
- package/dist/decorators/ticker-decorator.d.cts +4 -3
- package/dist/decorators/ticker-decorator.d.ts +4 -3
- package/dist/functions/canvas/canvas-effect.cjs +61821 -0
- package/dist/functions/canvas/canvas-effect.d.cts +15 -0
- package/dist/functions/canvas/canvas-effect.d.ts +15 -0
- package/dist/functions/canvas/canvas-effect.js +40 -0
- package/dist/functions/canvas/canvas-memory-utility.cjs +60 -26
- package/dist/functions/canvas/canvas-memory-utility.d.cts +5 -3
- package/dist/functions/canvas/canvas-memory-utility.d.ts +5 -3
- package/dist/functions/canvas/canvas-memory-utility.js +5 -5
- package/dist/functions/canvas/canvas-transition.cjs +586 -408
- package/dist/functions/canvas/canvas-transition.d.cts +43 -20
- package/dist/functions/canvas/canvas-transition.d.ts +43 -20
- package/dist/functions/canvas/canvas-transition.js +9 -5
- package/dist/functions/canvas/canvas-utility.cjs +60 -26
- package/dist/functions/canvas/canvas-utility.d.cts +2 -2
- package/dist/functions/canvas/canvas-utility.d.ts +2 -2
- package/dist/functions/canvas/canvas-utility.js +5 -5
- package/dist/functions/canvas/image-utility.cjs +60 -26
- package/dist/functions/canvas/image-utility.d.cts +2 -4
- package/dist/functions/canvas/image-utility.d.ts +2 -4
- package/dist/functions/canvas/image-utility.js +5 -5
- package/dist/functions/canvas/video-utility.cjs +60 -26
- package/dist/functions/canvas/video-utility.d.cts +3 -6
- package/dist/functions/canvas/video-utility.d.ts +3 -6
- package/dist/functions/canvas/video-utility.js +5 -5
- package/dist/functions/dialogue-utility.cjs +60 -26
- package/dist/functions/dialogue-utility.d.cts +1 -1
- package/dist/functions/dialogue-utility.d.ts +1 -1
- package/dist/functions/dialogue-utility.js +5 -5
- package/dist/functions/diff-utility.cjs +1 -1
- package/dist/functions/diff-utility.js +2 -2
- package/dist/functions/export-utility.cjs +1 -1
- package/dist/functions/export-utility.js +1 -1
- package/dist/functions/flags-utility.cjs +60 -26
- package/dist/functions/flags-utility.js +5 -5
- package/dist/functions/game-utility.cjs +60 -26
- package/dist/functions/game-utility.js +5 -5
- package/dist/functions/index.cjs +449 -183
- package/dist/functions/index.d.cts +17 -18
- package/dist/functions/index.d.ts +17 -18
- package/dist/functions/index.js +11 -5
- package/dist/functions/saves-utility.cjs +64 -28
- package/dist/functions/saves-utility.d.cts +13 -11
- package/dist/functions/saves-utility.d.ts +13 -11
- package/dist/functions/saves-utility.js +5 -5
- package/dist/functions/ticker-utility.d.cts +1 -1
- package/dist/functions/ticker-utility.d.ts +1 -1
- package/dist/index.cjs +363 -40
- package/dist/index.d.cts +16 -17
- package/dist/index.d.ts +16 -17
- package/dist/index.js +24 -18
- package/dist/interface/{IOpenedLabel.cjs → HistoryStep.cjs} +3 -3
- package/dist/interface/{IHistoryStep.d.cts → HistoryStep.d.cts} +12 -10
- package/dist/interface/{IHistoryStep.d.ts → HistoryStep.d.ts} +12 -10
- package/dist/interface/{IHistoryStep.cjs → OpenedLabel.cjs} +3 -3
- package/dist/interface/{IOpenedLabel.d.cts → OpenedLabel.d.cts} +2 -2
- package/dist/interface/{IOpenedLabel.d.ts → OpenedLabel.d.ts} +2 -2
- package/dist/interface/{ISaveData.cjs → SaveData.cjs} +3 -3
- package/dist/interface/{ISaveData.d.cts → SaveData.d.cts} +11 -9
- package/dist/interface/{ISaveData.d.ts → SaveData.d.ts} +11 -9
- package/dist/interface/{ITicker.cjs → Ticker.cjs} +3 -3
- package/dist/interface/Ticker.d.cts +24 -0
- package/dist/interface/Ticker.d.ts +24 -0
- package/dist/interface/TickerArgs.cjs +18 -0
- package/dist/interface/TickerArgs.d.cts +5 -0
- package/dist/interface/TickerArgs.d.ts +5 -0
- package/dist/interface/TickerHistory.d.cts +3 -4
- package/dist/interface/TickerHistory.d.ts +3 -4
- package/dist/interface/TickerProgrationType.d.cts +7 -6
- package/dist/interface/TickerProgrationType.d.ts +7 -6
- package/dist/interface/TickersSteps.cjs +18 -0
- package/dist/interface/{ITickersSteps.d.cts → TickersSteps.d.cts} +5 -7
- package/dist/interface/{ITickersSteps.d.ts → TickersSteps.d.ts} +5 -7
- package/dist/interface/canvas/TextureMemory.cjs +18 -0
- package/dist/interface/canvas/TextureMemory.d.cts +8 -0
- package/dist/interface/canvas/TextureMemory.d.ts +8 -0
- package/dist/interface/canvas/canvas-memory.cjs +18 -0
- package/dist/interface/canvas/canvas-memory.d.cts +51 -0
- package/dist/interface/canvas/canvas-memory.d.ts +51 -0
- package/dist/interface/canvas/effect-props.cjs +18 -0
- package/dist/interface/canvas/effect-props.d.cts +36 -0
- package/dist/interface/canvas/effect-props.d.ts +36 -0
- package/dist/interface/canvas/transition-props.cjs +18 -0
- package/dist/interface/canvas/transition-props.d.cts +38 -0
- package/dist/interface/canvas/transition-props.d.ts +38 -0
- package/dist/interface/export/ExportedCanvas.d.cts +8 -6
- package/dist/interface/export/ExportedCanvas.d.ts +8 -6
- package/dist/interface/export/ExportedStep.d.cts +12 -10
- package/dist/interface/export/ExportedStep.d.ts +12 -10
- package/dist/interface/index.d.cts +13 -16
- package/dist/interface/index.d.ts +13 -16
- package/dist/labels/BaseCanvasElementTestLabel.cjs +61 -27
- package/dist/labels/BaseCanvasElementTestLabel.js +7 -7
- package/dist/labels/CanvasEventsTestLabel.cjs +61 -27
- package/dist/labels/CanvasEventsTestLabel.d.cts +2 -3
- package/dist/labels/CanvasEventsTestLabel.d.ts +2 -3
- package/dist/labels/CanvasEventsTestLabel.js +7 -7
- package/dist/labels/CustomTickerCanvasElementTestLabel.cjs +1692 -28
- package/dist/labels/CustomTickerCanvasElementTestLabel.d.cts +3 -2
- package/dist/labels/CustomTickerCanvasElementTestLabel.d.ts +3 -2
- package/dist/labels/CustomTickerCanvasElementTestLabel.js +17 -7
- package/dist/labels/ImagesAnimationsTestLabel.cjs +349 -36
- package/dist/labels/ImagesAnimationsTestLabel.js +7 -7
- package/dist/labels/InputTestLabel.cjs +61 -27
- package/dist/labels/InputTestLabel.js +7 -7
- package/dist/labels/MarkdownTest.cjs +61 -27
- package/dist/labels/MarkdownTest.js +7 -7
- package/dist/labels/SoundTestLabel.cjs +61 -27
- package/dist/labels/SoundTestLabel.js +7 -7
- package/dist/labels/StartLabel.cjs +359 -39
- package/dist/labels/StartLabel.js +17 -16
- package/dist/labels/StepLabelTest.cjs +61 -27
- package/dist/labels/StepLabelTest.js +7 -7
- package/dist/labels/TestConstant.cjs +61 -27
- package/dist/labels/TestConstant.js +6 -6
- package/dist/labels/VideoTestLabel.cjs +66 -29
- package/dist/labels/VideoTestLabel.js +7 -7
- package/dist/labels/index.cjs +359 -39
- package/dist/labels/index.js +17 -17
- package/dist/managers/CanvasManager.cjs +60 -26
- package/dist/managers/CanvasManager.d.cts +21 -11
- package/dist/managers/CanvasManager.d.ts +21 -11
- package/dist/managers/CanvasManager.js +5 -5
- package/dist/managers/CanvasManagerStatic.d.cts +7 -6
- package/dist/managers/CanvasManagerStatic.d.ts +7 -6
- package/dist/managers/NarrationManager.cjs +60 -26
- package/dist/managers/NarrationManager.d.cts +10 -8
- package/dist/managers/NarrationManager.d.ts +10 -8
- package/dist/managers/NarrationManager.js +5 -5
- package/dist/managers/NarrationManagerStatic.cjs +60 -26
- package/dist/managers/NarrationManagerStatic.d.cts +16 -14
- package/dist/managers/NarrationManagerStatic.d.ts +16 -14
- package/dist/managers/NarrationManagerStatic.js +5 -5
- package/dist/managers/SoundManager.cjs +60 -26
- package/dist/managers/SoundManager.js +5 -5
- package/dist/managers/StorageManager.cjs +60 -26
- package/dist/managers/StorageManager.js +5 -5
- package/dist/managers/StorageManagerStatic.cjs +1 -1
- package/dist/managers/StorageManagerStatic.js +2 -2
- package/dist/managers/index.cjs +60 -26
- package/dist/managers/index.d.cts +12 -8
- package/dist/managers/index.d.ts +12 -8
- package/dist/managers/index.js +5 -5
- package/dist/types/ChoiceMenuOptionsType.d.cts +1 -1
- package/dist/types/ChoiceMenuOptionsType.d.ts +1 -1
- package/dist/types/ticker/MoveTickerProps.d.cts +8 -2
- package/dist/types/ticker/MoveTickerProps.d.ts +8 -2
- package/dist/types/ticker/RotateTickerProps.d.cts +1 -1
- package/dist/types/ticker/RotateTickerProps.d.ts +1 -1
- package/dist/types/ticker/ZoomTickerProps.d.cts +1 -1
- package/dist/types/ticker/ZoomTickerProps.d.ts +1 -1
- package/package.json +4 -4
- package/dist/TickerBase-DbIg7gDS.d.ts +0 -94
- package/dist/TickerBase-eU4Hvvy0.d.cts +0 -94
- package/dist/chunk-II324FA5.js +0 -101
- package/dist/interface/ITicker.d.cts +0 -4
- package/dist/interface/ITicker.d.ts +0 -4
- package/dist/interface/ITickersSteps.cjs +0 -18
- package/dist/interface/canvas/ICanvasBaseMemory.cjs +0 -18
- package/dist/interface/canvas/ICanvasBaseMemory.d.cts +0 -8
- package/dist/interface/canvas/ICanvasBaseMemory.d.ts +0 -8
- package/dist/interface/canvas/ICanvasContainerMemory.cjs +0 -18
- package/dist/interface/canvas/ICanvasContainerMemory.d.cts +0 -11
- package/dist/interface/canvas/ICanvasContainerMemory.d.ts +0 -11
- package/dist/interface/canvas/ICanvasImageMemory.cjs +0 -18
- package/dist/interface/canvas/ICanvasImageMemory.d.cts +0 -14
- package/dist/interface/canvas/ICanvasImageMemory.d.ts +0 -14
- package/dist/interface/canvas/ICanvasSpriteMemory.cjs +0 -18
- package/dist/interface/canvas/ICanvasSpriteMemory.d.cts +0 -18
- package/dist/interface/canvas/ICanvasSpriteMemory.d.ts +0 -18
- package/dist/interface/canvas/ICanvasTextTextMemory.cjs +0 -18
- package/dist/interface/canvas/ICanvasTextTextMemory.d.cts +0 -14
- package/dist/interface/canvas/ICanvasTextTextMemory.d.ts +0 -14
- package/dist/interface/canvas/ICanvasTextTextMemory.js +0 -0
- package/dist/interface/canvas/ICanvasVideoMemory.cjs +0 -18
- package/dist/interface/canvas/ICanvasVideoMemory.d.cts +0 -17
- package/dist/interface/canvas/ICanvasVideoMemory.d.ts +0 -17
- package/dist/interface/canvas/ICanvasVideoMemory.js +0 -0
- package/dist/interface/canvas/ITextureMemory.cjs +0 -18
- package/dist/interface/canvas/ITextureMemory.d.cts +0 -8
- package/dist/interface/canvas/ITextureMemory.d.ts +0 -8
- package/dist/interface/canvas/ITextureMemory.js +0 -0
- package/dist/interface/canvas/ITransitionProps.cjs +0 -18
- package/dist/interface/canvas/ITransitionProps.d.cts +0 -22
- package/dist/interface/canvas/ITransitionProps.d.ts +0 -22
- package/dist/interface/canvas/ITransitionProps.js +0 -0
- /package/dist/{chunk-JQ2KK52M.js → interface/HistoryStep.js} +0 -0
- /package/dist/interface/{IHistoryStep.js → OpenedLabel.js} +0 -0
- /package/dist/interface/{IOpenedLabel.js → SaveData.js} +0 -0
- /package/dist/interface/{ISaveData.js → Ticker.js} +0 -0
- /package/dist/interface/{ITicker.js → TickerArgs.js} +0 -0
- /package/dist/interface/{ITickersSteps.js → TickersSteps.js} +0 -0
- /package/dist/interface/canvas/{ICanvasBaseMemory.js → TextureMemory.js} +0 -0
- /package/dist/interface/canvas/{ICanvasContainerMemory.js → canvas-memory.js} +0 -0
- /package/dist/interface/canvas/{ICanvasImageMemory.js → effect-props.js} +0 -0
- /package/dist/interface/canvas/{ICanvasSpriteMemory.js → transition-props.js} +0 -0
package/README.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
# Pixi'VN - PixiJS Visual Novel Engine
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+

|
|
4
4
|
|
|
5
|
-
Pixi’VN
|
|
5
|
+
Pixi’VN is a very versatile and powerful visual novel/2D game engine. It is based on JavaScript/TypeScript and uses the [Pixi.js](https://pixijs.com/) library for rendering.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Its great versatility is due to the fact that Pixi’VN is a npm package, that provides various core features to manage story steps, dialogues, character, canvas management, variable storage, saving and loading, and much more. This means that it can be used both to create visual novels and to create other types of 2D games (such as Point and Click Adventure Games, RPGs, etc...), with your favorite JavaScript framework (React, Vue, Angular, etc...).
|
|
8
|
+
|
|
9
|
+
Pixi’VN provides the ability to use [Templates](#project-initialization) to get started quickly. Less experienced developers can use these templates to create a visual novel without much knowledge of JavaScript/TypeScript.
|
|
8
10
|
|
|
9
11
|
With the [PixiVNJson](https://pixi-vn.web.app/advanced/pixi-vn-json.html) implementation you have the option to use various types of narrative languages (in addition to JavaScript/TypeScript). Currently you can use the following:
|
|
10
12
|
|
|
11
|
-
* [
|
|
13
|
+
* [*ink*](https://pixi-vn.web.app/ink/ink.html)
|
|
12
14
|
* [Ren'Py](https://pixi-vn.web.app/renpy/renpy.html)
|
|
13
15
|
|
|
14
|
-
It is based on [Pixi.js](https://pixijs.com/), a rendering engine that allows you to create fast 2D graphics. It is based on WebGL and is very fast and efficient. It is used by many developers to create games, websites, and applications.
|
|
15
|
-
|
|
16
16
|
Pixi’VN offers the possibility of adding an HTML Element with the same dimensions as the [PixiJS Canvas](https://pixi-vn.web.app/start/canvas.html) to add an **UI** with JavaScript frameworks.
|
|
17
17
|
|
|
18
18
|
By "UI" is meant the elements that are above the canvas, such as buttons, forms, etc.
|
|
@@ -27,31 +27,36 @@ This allows the use of systems such as React, Vue, Angular, etc. to create much
|
|
|
27
27
|
|
|
28
28
|
## Wiki
|
|
29
29
|
|
|
30
|
-
For more information, visit the [Web Page](https://pixi-vn.web.app/)
|
|
31
|
-
|
|
32
30
|
* [Why Pixi’VN?](https://pixi-vn.web.app/start/why.html)
|
|
33
31
|
* [Get Started](https://pixi-vn.web.app/start/getting-started.html)
|
|
34
32
|
|
|
35
33
|
### First steps
|
|
36
34
|
|
|
37
35
|
* [Characters](https://pixi-vn.web.app/start/character.html)
|
|
38
|
-
* [Narration
|
|
39
|
-
* [
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
* [
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
* [
|
|
52
|
-
*
|
|
53
|
-
|
|
54
|
-
* [
|
|
36
|
+
* [Narration](https://pixi-vn.web.app/start/narration.html):
|
|
37
|
+
* [Narration with ink](https://pixi-vn.web.app/ink/ink.html):
|
|
38
|
+
* [Characters](https://pixi-vn.web.app/ink/ink-character.html)
|
|
39
|
+
* [Open a knot](https://pixi-vn.web.app/ink/ink-label.html)
|
|
40
|
+
* [Variables](https://pixi-vn.web.app/ink/ink-variables.html)
|
|
41
|
+
* [Style Text (Markdown)](https://pixi-vn.web.app/ink/ink-markdown.html)
|
|
42
|
+
* [Input](https://pixi-vn.web.app/ink/ink-input.html)
|
|
43
|
+
* [Canvas](https://pixi-vn.web.app/ink/ink-canvas.html)
|
|
44
|
+
* [Sounds and Music](https://pixi-vn.web.app/ink/ink-sound.html)
|
|
45
|
+
* [Pause](https://pixi-vn.web.app/ink/ink-pause.html)
|
|
46
|
+
* [Translating](https://pixi-vn.web.app/ink/ink-translate.html)
|
|
47
|
+
* [Text replacement](https://pixi-vn.web.app/ink/ink-replacement.html)
|
|
48
|
+
* [Custom Hashtag Script](https://pixi-vn.web.app/ink/ink-hashtag.html)
|
|
49
|
+
* [Narration with Ren’Py](https://pixi-vn.web.app/renpy/renpy.html)
|
|
50
|
+
* Narration with JS/TS:
|
|
51
|
+
* [Dialogue](https://pixi-vn.web.app/start/dialogue.html)
|
|
52
|
+
* [Label and Game Step](https://pixi-vn.web.app/start/labels.html)
|
|
53
|
+
* [Choice Menus](https://pixi-vn.web.app/start/choices.html)
|
|
54
|
+
* [Input](https://pixi-vn.web.app/start/input.html)
|
|
55
|
+
* [History](https://pixi-vn.web.app/start/history.html)
|
|
56
|
+
* [Translating](https://pixi-vn.web.app/start/translate.html)
|
|
57
|
+
* [Typewriter effect](https://pixi-vn.web.app/start/typewriter.html)
|
|
58
|
+
* [Style Text (Markdown)](https://pixi-vn.web.app/start/markdown.html)
|
|
59
|
+
* [Other features](https://pixi-vn.web.app/start/other-narrative-features.html)
|
|
55
60
|
* [PixiJS Canvas](https://pixi-vn.web.app/start/canvas.html):
|
|
56
61
|
* [Images](https://pixi-vn.web.app/start/images.html)
|
|
57
62
|
* [Video](https://pixi-vn.web.app/start/videos.html)
|
|
@@ -73,11 +78,15 @@ For more information, visit the [Web Page](https://pixi-vn.web.app/)
|
|
|
73
78
|
|
|
74
79
|
* [Intecept Events](https://pixi-vn.web.app/advanced/intercept-events.html)
|
|
75
80
|
* [Distribution](https://pixi-vn.web.app/advanced/distribution.html)
|
|
76
|
-
* [
|
|
77
|
-
* [
|
|
81
|
+
* [Website distribution](https://pixi-vn.web.app/advanced/distribution-website.html)
|
|
82
|
+
* [Desktop distribution](https://pixi-vn.web.app/advanced/distribution-desktop.html)
|
|
83
|
+
* [Mobile distribution](https://pixi-vn.web.app/advanced/distribution-mobile.html)
|
|
84
|
+
* [Pixi’VN + Json](pixi-vn-json)
|
|
78
85
|
|
|
79
86
|
## Prerequisites
|
|
80
87
|
|
|
88
|
+
Before starting, you must have the following tools installed:
|
|
89
|
+
|
|
81
90
|
* [Node.js](https://nodejs.org/) version 18 or higher.
|
|
82
91
|
* Text Editor with TypeScript support.
|
|
83
92
|
* [Visual Studio Code](https://code.visualstudio.com/) is recommended.
|
|
@@ -1,30 +1,114 @@
|
|
|
1
|
+
import {
|
|
2
|
+
videoTest
|
|
3
|
+
} from "./chunk-GNFWXAOE.js";
|
|
4
|
+
import {
|
|
5
|
+
imagesAnimationsTest
|
|
6
|
+
} from "./chunk-GEWQS6GP.js";
|
|
7
|
+
import {
|
|
8
|
+
inputTestLabel
|
|
9
|
+
} from "./chunk-FIQXZ3P3.js";
|
|
10
|
+
import {
|
|
11
|
+
markdownTest
|
|
12
|
+
} from "./chunk-TNQKYUOG.js";
|
|
13
|
+
import {
|
|
14
|
+
soundTestLabel
|
|
15
|
+
} from "./chunk-SZWI2CBA.js";
|
|
16
|
+
import {
|
|
17
|
+
stepLabelTestLAbel
|
|
18
|
+
} from "./chunk-5A543GJ4.js";
|
|
19
|
+
import {
|
|
20
|
+
baseCanvasElementTestLabel
|
|
21
|
+
} from "./chunk-BHVKSBFZ.js";
|
|
22
|
+
import {
|
|
23
|
+
canvasEventsTestLabel
|
|
24
|
+
} from "./chunk-GKLIT4GX.js";
|
|
1
25
|
import {
|
|
2
26
|
eggHeadImage,
|
|
3
27
|
eggHeadName,
|
|
4
28
|
juliette
|
|
5
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-FM5SFYXO.js";
|
|
6
30
|
import {
|
|
7
31
|
CanvasSprite,
|
|
32
|
+
ChoiceMenuOption,
|
|
8
33
|
TickerBase,
|
|
9
34
|
canvas,
|
|
10
35
|
canvasElementDecorator,
|
|
11
36
|
narration,
|
|
12
37
|
newLabel
|
|
13
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-D3ZQSJKZ.js";
|
|
14
39
|
import {
|
|
15
40
|
tickerDecorator
|
|
16
41
|
} from "./chunk-JTQGULTR.js";
|
|
42
|
+
import {
|
|
43
|
+
version
|
|
44
|
+
} from "./chunk-A4NKPUL5.js";
|
|
17
45
|
import {
|
|
18
46
|
Assets
|
|
19
47
|
} from "./chunk-2PXN34ON.js";
|
|
20
48
|
import {
|
|
21
|
-
Rectangle
|
|
22
|
-
Sprite
|
|
49
|
+
Rectangle
|
|
23
50
|
} from "./chunk-PZXJFPCN.js";
|
|
24
51
|
import {
|
|
25
52
|
__decorateClass
|
|
26
53
|
} from "./chunk-N342G4HO.js";
|
|
27
54
|
|
|
55
|
+
// src/labels/StartLabel.ts
|
|
56
|
+
var pixivnTestStartLabel = newLabel(
|
|
57
|
+
"___pixi_vn_example_start_label___",
|
|
58
|
+
[
|
|
59
|
+
() => {
|
|
60
|
+
let currentTimeName = "";
|
|
61
|
+
const hour = (/* @__PURE__ */ new Date()).getHours();
|
|
62
|
+
if (hour >= 5 && hour < 12) {
|
|
63
|
+
currentTimeName = "morning\u{1F505}";
|
|
64
|
+
} else if (hour >= 12 && hour < 18) {
|
|
65
|
+
currentTimeName = "afternoon\u{1F506}";
|
|
66
|
+
} else if (hour >= 18 && hour < 22) {
|
|
67
|
+
currentTimeName = "evening\u26C5";
|
|
68
|
+
} else {
|
|
69
|
+
currentTimeName = "night\u{1F319}";
|
|
70
|
+
}
|
|
71
|
+
narration.dialogue = { character: juliette, text: `Good ${currentTimeName}! I'm ${juliette.name}, your virtual assistant. I'm here to help you with your tests.` };
|
|
72
|
+
},
|
|
73
|
+
() => narration.dialogue = { character: juliette, text: `You are running the Pixi\u2019VN v${version} test. This test will guide you through the different features of the library.` },
|
|
74
|
+
(props) => narration.jumpLabel(pixivnTestStartLabel2, props)
|
|
75
|
+
]
|
|
76
|
+
);
|
|
77
|
+
var openLink = newLabel(
|
|
78
|
+
"___pixi_vn_open_link___",
|
|
79
|
+
[
|
|
80
|
+
async (props) => {
|
|
81
|
+
window.open(props.link);
|
|
82
|
+
await narration.goNext(props);
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
);
|
|
86
|
+
var RESTART_TEST_LABEL = "___pixi_vn_restart_test_label___";
|
|
87
|
+
var pixivnTestStartLabel2 = newLabel(
|
|
88
|
+
RESTART_TEST_LABEL,
|
|
89
|
+
[
|
|
90
|
+
() => {
|
|
91
|
+
canvas.clear();
|
|
92
|
+
narration.dialogue = { character: juliette, text: "Which test would you like to start with?" };
|
|
93
|
+
narration.choiceMenuOptions = [
|
|
94
|
+
new ChoiceMenuOption("Open Pixi\u2019VN Wiki", openLink, { link: "https://pixi-vn.web.app/" }),
|
|
95
|
+
new ChoiceMenuOption("Open Pixi\u2019VN Discord", openLink, { link: "https://discord.gg/E95FZWakzp" }),
|
|
96
|
+
new ChoiceMenuOption("Open Pixi\u2019VN Github Issues", openLink, { link: "https://github.com/DRincs-Productions/pixi-vn/issues" }),
|
|
97
|
+
new ChoiceMenuOption("Images, Transitions and Animations Test", imagesAnimationsTest, {}),
|
|
98
|
+
new ChoiceMenuOption("Video Test", videoTest, {}),
|
|
99
|
+
new ChoiceMenuOption("Canvas Events Test", canvasEventsTestLabel, {}),
|
|
100
|
+
new ChoiceMenuOption("Sound Test", soundTestLabel, {}),
|
|
101
|
+
new ChoiceMenuOption("Base Canvas Element Test", baseCanvasElementTestLabel, {}),
|
|
102
|
+
new ChoiceMenuOption("Custom Ticker Canvas Element Test", customTickerCanvasElementTestLabel, {}),
|
|
103
|
+
new ChoiceMenuOption("Steps and Labels Test", stepLabelTestLAbel, {}),
|
|
104
|
+
new ChoiceMenuOption("Markdown Test", markdownTest, {}),
|
|
105
|
+
new ChoiceMenuOption("Input Test", inputTestLabel, {})
|
|
106
|
+
];
|
|
107
|
+
},
|
|
108
|
+
(props) => narration.jumpLabel(RESTART_TEST_LABEL, props)
|
|
109
|
+
]
|
|
110
|
+
);
|
|
111
|
+
|
|
28
112
|
// src/labels/CustomTickerCanvasElementTestLabel.ts
|
|
29
113
|
var AlienTintingTest = class extends CanvasSprite {
|
|
30
114
|
get memory() {
|
|
@@ -45,7 +129,7 @@ var AlienTintingTest = class extends CanvasSprite {
|
|
|
45
129
|
turningSpeed = 0;
|
|
46
130
|
speed = 0;
|
|
47
131
|
static from(source, skipCache) {
|
|
48
|
-
let sprite =
|
|
132
|
+
let sprite = CanvasSprite.from(source, skipCache);
|
|
49
133
|
let mySprite = new AlienTintingTest();
|
|
50
134
|
mySprite.texture = sprite.texture;
|
|
51
135
|
return mySprite;
|
|
@@ -120,5 +204,7 @@ var customTickerCanvasElementTestLabel = newLabel(
|
|
|
120
204
|
|
|
121
205
|
export {
|
|
122
206
|
TintingTestTicker,
|
|
123
|
-
customTickerCanvasElementTestLabel
|
|
207
|
+
customTickerCanvasElementTestLabel,
|
|
208
|
+
pixivnTestStartLabel,
|
|
209
|
+
pixivnTestStartLabel2
|
|
124
210
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
juliette
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FM5SFYXO.js";
|
|
4
4
|
import {
|
|
5
5
|
narration,
|
|
6
6
|
newLabel
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-D3ZQSJKZ.js";
|
|
8
8
|
|
|
9
9
|
// src/labels/StepLabelTest.ts
|
|
10
10
|
var STEP_LABEL_TEST_LABEL = "___pixi_vn_step_label_test___";
|
|
@@ -2,8 +2,10 @@ import {
|
|
|
2
2
|
filters_exports
|
|
3
3
|
} from "./chunk-RATGPKD3.js";
|
|
4
4
|
|
|
5
|
+
// package.json
|
|
6
|
+
var version = "0.8.9";
|
|
7
|
+
|
|
5
8
|
// src/constants.ts
|
|
6
|
-
var PIXIVN_VERSION = "0.8.3";
|
|
7
9
|
var Repeat = "repeat";
|
|
8
10
|
function Pause(duration) {
|
|
9
11
|
return {
|
|
@@ -122,11 +124,13 @@ var videoFormats = [
|
|
|
122
124
|
"asf",
|
|
123
125
|
"vob"
|
|
124
126
|
];
|
|
127
|
+
var CANVAS_APP_STAGE_ALIAS = "_stage_";
|
|
125
128
|
|
|
126
129
|
export {
|
|
127
|
-
|
|
130
|
+
version,
|
|
128
131
|
Repeat,
|
|
129
132
|
Pause,
|
|
130
133
|
filters,
|
|
131
|
-
videoFormats
|
|
134
|
+
videoFormats,
|
|
135
|
+
CANVAS_APP_STAGE_ALIAS
|
|
132
136
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
bunnyImage,
|
|
3
3
|
juliette
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FM5SFYXO.js";
|
|
5
5
|
import {
|
|
6
6
|
CanvasContainer,
|
|
7
7
|
CanvasSprite,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
canvas,
|
|
11
11
|
narration,
|
|
12
12
|
newLabel
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-D3ZQSJKZ.js";
|
|
14
14
|
import {
|
|
15
15
|
Assets
|
|
16
16
|
} from "./chunk-2PXN34ON.js";
|