## Introduction
npm install kibounohanaWeb-based AVG engine.
```
yarn add kibounohana
`html`
See neruthes/kibounohana-demo for demo and here is the online demo.
Sample story:
`javascript`
const myGame = {};
myGame.scenes = {
s0: {
type: 'basic',
dialogue: [
{ char: 'Alice', bg: '1.png', text: 'Hey, Bob!' },
{ char: 'Bob', bg: '2.png', text: 'How are you, Alice!' }
],
choices: [
{ label: 'Start Over', jump: 's0' }
]
}
};
`javascript`
kibounohana.Initd.boot(myGame, '#displayTarget');
This method accept 2 arguments:
Argument | Description
--------------- | -----------
arg1 | Game story object.
arg2 | CSS selector string for the display target.
- Set kibounohana.config.deploymentTarget to un string like http://localhost:8000./assets/img/
- Background images for dialogues should be placed in .mySceneType
- You can define your own scene types (eg ) by setting kibounohana.View.renderMainView_mySceneType as un function which accept currentSceneObj as arguments[0]`.
Copyright (c) 2020 Neruthes.
Published under GNU AGPL v3.