- ๐ Simple verbal language for creating visual novels.
- ๐งโ๐ป All in coding, no difficult visual editors.
- ๐จ Fully customizable.
- ๐พ Easy to integrate minigames
- ๐ฅ Based in kaboom.js
Start coding/reading mandarina code is quite simple!
import mandarina from "mandarinavn";
// Init options
const m = mandarina({
textbox: {
textFont: "comic-sans",
textSize: 24,
},
});
// Define characters
m.character("d", "Dude");
m.character("b", "Bro");
// Create the start chapter
m.chapter("start", () => [
// Show a background
m.bg(new m.k.Color(255, 255, 255)).fadeIn(),
// Show our character.
m.show("t", "normal"),
// Say something.
m.say("t", "Hi, I'm Deffy!"),
m.say("t", "What's your name?"),
// Ask an input
m.input("name"),
// Jump to another chapter
m.jump("ch1"),
]);
// Start novel
m.start();
The mandarina package is not already inside npmjs service, so you can install trough npm with
npm i github:lajbel/mandarina@master