@novely/core 0.38.1 → 0.38.2
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 +45 -2
- package/dist/index.global.js +186 -239
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +47 -93
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
# @novely/core
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Novel Engine for creating interactive stories
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
- **Multilanguage**: Enable users to access content in multiple languages and handle pluralization in a simple and intuitive way
|
|
6
|
+
- **TypeScript**: Development with efficiency, type checking, and smart auto complete
|
|
7
|
+
- **Modularity in Mind**: Opt-in features, instead of opting-out! Lightweight and highly customizable
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
- [Getting Started](https://novely.deno.dev/guide/getting-started.html)
|
|
12
|
+
|
|
13
|
+
## Documentation
|
|
14
|
+
|
|
15
|
+
You can find documentation on the [website](https://novely.deno.dev/guide/getting-started.html).
|
|
16
|
+
|
|
17
|
+
## Examples
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
import { createSolidRenderer } from '@novely/solid-renderer';
|
|
21
|
+
import { novely, EN } from '@novely/core';
|
|
22
|
+
|
|
23
|
+
const engine = novely({
|
|
24
|
+
renderer: createSolidRenderer().renderer,
|
|
25
|
+
translation: {
|
|
26
|
+
en: {
|
|
27
|
+
internal: EN
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
characters: {
|
|
31
|
+
Natsuki: {
|
|
32
|
+
name: 'Natsuki',
|
|
33
|
+
color: '#f388aa',
|
|
34
|
+
emotions: {
|
|
35
|
+
happy: './natsuki-happy.png'
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
engine.script({
|
|
42
|
+
start: [
|
|
43
|
+
engine.action.showBackground('./school.png'),
|
|
44
|
+
engine.action.showCharacter('Natsuki', 'happy'),
|
|
45
|
+
engine.action.dialog('Natsuki', 'Whoa! I am very happy to see you!')
|
|
46
|
+
]
|
|
47
|
+
})
|
|
48
|
+
```
|