narrat 0.8.1 → 0.8.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/package.json CHANGED
@@ -1,82 +1,82 @@
1
- {
2
- "name": "narrat",
3
- "version": "0.8.1",
4
- "description": "narrat narrative engine",
5
- "main": "lib/index.js",
6
- "module": "lib/index.esm.js",
7
- "files": [
8
- "lib/"
9
- ],
10
- "scripts": {
11
- "test": "echo \"Error: no test specified\" && exit 1",
12
- "start": "snowpack dev",
13
- "version": "npm run build",
14
- "build": "cross-env NODE_ENV=production rollup -c",
15
- "build-demo": "snowpack build",
16
- "lint": "eslint src --ext=.js,.jsx,.ts,.tsx",
17
- "preversion": "npm run build && npm run lint",
18
- "postversion": "git push && git push --tags"
19
- },
20
- "keywords": [
21
- "game"
22
- ],
23
- "author": "Liana Pigeot <liana.pigeot@protonmail.com>",
24
- "license": "MIT",
25
- "devDependencies": {
26
- "@babel/core": "^7.12.10",
27
- "@babel/preset-env": "^7.12.11",
28
- "@rollup/plugin-commonjs": "^16.0.0",
29
- "@rollup/plugin-node-resolve": "^10.0.0",
30
- "@rollup/plugin-typescript": "^8.2.5",
31
- "@snowpack/plugin-postcss": "^1.4.3",
32
- "@snowpack/plugin-sass": "^1.4.0",
33
- "@snowpack/plugin-typescript": "^1.2.1",
34
- "@snowpack/plugin-vue": "^2.6.2",
35
- "@types/howler": "^2.2.3",
36
- "@typescript-eslint/eslint-plugin": "^4.28.3",
37
- "@typescript-eslint/parser": "^4.28.3",
38
- "@vue/compiler-sfc": "^3.0.4",
39
- "babel-loader": "^8.2.2",
40
- "babel-plugin-syntax-dynamic-import": "^6.18.0",
41
- "babel-preset-vue": "^2.0.2",
42
- "cross-env": "^7.0.3",
43
- "css-loader": "^5.0.1",
44
- "es6-promise": "^4.2.8",
45
- "eslint": "^7.30.0",
46
- "eslint-config-airbnb-base": "^14.2.1",
47
- "eslint-config-prettier": "^8.3.0",
48
- "eslint-config-standard": "^16.0.3",
49
- "eslint-import-resolver-typescript": "^2.4.0",
50
- "eslint-plugin-import": "^2.23.4",
51
- "eslint-plugin-node": "^11.1.0",
52
- "eslint-plugin-promise": "^5.1.0",
53
- "eslint-plugin-vue": "^7.13.0",
54
- "postcss": "^8.2.1",
55
- "postcss-cli": "^8.3.1",
56
- "prettier": "2.3.2",
57
- "rollup": "^2.35.1",
58
- "rollup-plugin-analyzer": "^4.0.0",
59
- "rollup-plugin-inject-process-env": "^1.3.1",
60
- "rollup-plugin-paths": "^0.0.4",
61
- "rollup-plugin-peer-deps-external": "^2.2.4",
62
- "rollup-plugin-postcss": "^4.0.0",
63
- "rollup-plugin-typescript2": "^0.30.0",
64
- "rollup-plugin-version-injector": "^1.3.0",
65
- "rollup-plugin-vue": "^6.0.0-beta.11",
66
- "snowpack": "^3.8.6",
67
- "tailwindcss": "^2.0.2",
68
- "typescript": "^4.2.3",
69
- "vue": "^3.2.2",
70
- "vuex": "^4.0.0-rc.2"
71
- },
72
- "peerDependencies": {
73
- "es6-promise": "^4.2.8",
74
- "vue": "^3.0.4",
75
- "vuex": "^4.0.0-rc.2"
76
- },
77
- "dependencies": {
78
- "autoprefixer": "^10.2.6",
79
- "howler": "^2.2.3",
80
- "vue3-mq": "^3.0.0"
81
- }
82
- }
1
+ {
2
+ "name": "narrat",
3
+ "version": "0.8.2",
4
+ "description": "narrat narrative engine",
5
+ "main": "lib/index.js",
6
+ "module": "lib/index.esm.js",
7
+ "files": [
8
+ "lib/"
9
+ ],
10
+ "scripts": {
11
+ "test": "echo \"Error: no test specified\" && exit 1",
12
+ "start": "snowpack dev",
13
+ "version": "npm run build",
14
+ "build": "cross-env NODE_ENV=production rollup -c",
15
+ "build-demo": "snowpack build",
16
+ "lint": "eslint src --ext=.js,.jsx,.ts,.tsx",
17
+ "preversion": "npm run build && npm run lint",
18
+ "postversion": "git push && git push --tags"
19
+ },
20
+ "keywords": [
21
+ "game"
22
+ ],
23
+ "author": "Liana Pigeot <liana.pigeot@protonmail.com>",
24
+ "license": "MIT",
25
+ "devDependencies": {
26
+ "@babel/core": "^7.12.10",
27
+ "@babel/preset-env": "^7.12.11",
28
+ "@rollup/plugin-commonjs": "^16.0.0",
29
+ "@rollup/plugin-node-resolve": "^10.0.0",
30
+ "@rollup/plugin-typescript": "^8.2.5",
31
+ "@snowpack/plugin-postcss": "^1.4.3",
32
+ "@snowpack/plugin-sass": "^1.4.0",
33
+ "@snowpack/plugin-typescript": "^1.2.1",
34
+ "@snowpack/plugin-vue": "^2.6.2",
35
+ "@types/howler": "^2.2.3",
36
+ "@typescript-eslint/eslint-plugin": "^4.28.3",
37
+ "@typescript-eslint/parser": "^4.28.3",
38
+ "@vue/compiler-sfc": "^3.0.4",
39
+ "babel-loader": "^8.2.2",
40
+ "babel-plugin-syntax-dynamic-import": "^6.18.0",
41
+ "babel-preset-vue": "^2.0.2",
42
+ "cross-env": "^7.0.3",
43
+ "css-loader": "^5.0.1",
44
+ "es6-promise": "^4.2.8",
45
+ "eslint": "^7.30.0",
46
+ "eslint-config-airbnb-base": "^14.2.1",
47
+ "eslint-config-prettier": "^8.3.0",
48
+ "eslint-config-standard": "^16.0.3",
49
+ "eslint-import-resolver-typescript": "^2.4.0",
50
+ "eslint-plugin-import": "^2.23.4",
51
+ "eslint-plugin-node": "^11.1.0",
52
+ "eslint-plugin-promise": "^5.1.0",
53
+ "eslint-plugin-vue": "^7.13.0",
54
+ "postcss": "^8.2.1",
55
+ "postcss-cli": "^8.3.1",
56
+ "prettier": "2.3.2",
57
+ "rollup": "^2.35.1",
58
+ "rollup-plugin-analyzer": "^4.0.0",
59
+ "rollup-plugin-inject-process-env": "^1.3.1",
60
+ "rollup-plugin-paths": "^0.0.4",
61
+ "rollup-plugin-peer-deps-external": "^2.2.4",
62
+ "rollup-plugin-postcss": "^4.0.0",
63
+ "rollup-plugin-typescript2": "^0.30.0",
64
+ "rollup-plugin-version-injector": "^1.3.0",
65
+ "rollup-plugin-vue": "^6.0.0-beta.11",
66
+ "snowpack": "^3.8.6",
67
+ "tailwindcss": "^2.0.2",
68
+ "typescript": "^4.2.3",
69
+ "vue": "^3.2.2",
70
+ "vuex": "^4.0.0-rc.2"
71
+ },
72
+ "peerDependencies": {
73
+ "es6-promise": "^4.2.8",
74
+ "vue": "^3.0.4",
75
+ "vuex": "^4.0.0-rc.2"
76
+ },
77
+ "dependencies": {
78
+ "autoprefixer": "^10.2.6",
79
+ "howler": "^2.2.3",
80
+ "vue3-mq": "^3.0.0"
81
+ }
82
+ }
package/CHANGELOG.md DELETED
@@ -1,123 +0,0 @@
1
- # Narrat changelog
2
-
3
- ## 0.8.1
4
-
5
- - Fixed a bug in accessing values inside conditions caused by changed in 0.7.2
6
-
7
- ## 0.8.0
8
-
9
- - Changed the `set` method to access things without caps (`data`, `skills`, `buttons` instead of `DATA`, `SKILLS`, `BUTTONS`) for consistency.
10
- - Changed string interpolation to have more accessible objects, now values in `data` need to be accessed with `%{data.something}` instead of just `%{something}`
11
- - Now possible to access skill levels in string interpolation with `%{skills.someSkill.level}`
12
- - Improvements to how skill checks are printed to be less awkward
13
-
14
- ## 0.7.1
15
-
16
- - Added `stop` and `pause` functions which work similarly to play for stopping or pausing audio.
17
-
18
- ## 0.6.5
19
-
20
- - Audio and music options from the config now get passed to howler
21
- - Renamed `path` to `src` in audio config (to be consistent with howler)
22
-
23
- ## 0.6.0
24
-
25
- Added stats feature for tracking numbers and displaying them in the hud
26
-
27
- Example config:
28
-
29
- ```
30
- "hudStats": {
31
- "money": {
32
- "icon": "img/ui/money.png",
33
- "name": "Money",
34
- "startingValue": 0,
35
- "minValue": 0
36
- },
37
- "energy": {
38
- "icon": "img/ui/energy.png",
39
- "name": "Energy",
40
- "startingValue": 10,
41
- "minValue": 0,
42
- "maxValue": 10
43
- }
44
- }
45
- ```
46
-
47
- ## 0.5.4
48
-
49
- - Improved responsive layout and fixed some issues in it
50
-
51
- New config keys required in the layout part of the config (to be documented):
52
-
53
- ```
54
- "layout": {
55
- "backgrounds": {
56
- "width": 880,
57
- "height": 720
58
- },
59
- "dialogBottomPadding": 70,
60
- "minTextWidth": 475,
61
- "mobileDialogHeightPercentage": 60,
62
- "verticalLayoutThreshold": 1000,
63
- "portraits": {
64
- "width": 100,
65
- "height": 100
66
- }
67
- },
68
- ```
69
-
70
- ## 0.4.0
71
-
72
- Added responsive layout for mobile and small screens. Still in progress, but functionnal enough to be better than before so I'm releasing it.
73
-
74
- ## 0.3.4
75
-
76
- - Improved string templating to work with deep nesting and also inside choice text
77
-
78
- ## 0.3.3
79
-
80
- - Now detects indentation size and can support any indentation size
81
-
82
- ## 0.3.2
83
-
84
- - Added a new `add_level` function for increasing the level of a skill. Example: `add_level someSkill 1` will increase the player's level in `someSkill` by 1
85
- - Added a new `notify` function for displaying a notification toast that disappears after a few seconds (duration configurable in `config.json`). Example: `notify "Hello, this is a notification"`.
86
-
87
- ## 0.3.1
88
-
89
- Added new config options for controlling how skill rolls are done and the display of their difficulty
90
-
91
- ## 0.3.0
92
-
93
- Breaking changes around renaming data access from scripts
94
-
95
- ### New Add Command
96
-
97
- New `add` command, works the same way as `set` but increments the value based on the existing value, ie. `set SKILLS.someSkill.level 2` will increment `someSkill.level` by 2.
98
-
99
- ### Skills
100
-
101
- - Now possible to set the starting value of a skill (in the config)
102
- - Now possible to edit a skill's value with `set SKILLS.someSkill.level 2` for example
103
- - Skillcheck command renamed to roll (`if this.roll("someSkillCheck", "testSkill", 40);`)
104
-
105
- ### General
106
-
107
- The `set` and `$if` command now refer to data in caps and have access to more data:
108
-
109
- - `set SKILLS.someSkill.level [value]` Sets the value of a skill
110
- - `set DATA.someData [value]` Sets a value in the data object (data is for any game-created variables)
111
- - `$if this.SKILLCHECKS.someSkillCheck.passed` now available for checking if a skillcheck has already been passed
112
-
113
- ## 0.0.14
114
-
115
- - Added the changelog (manually made for now)
116
-
117
- ## 0.0.13
118
-
119
- - Added debug menu for jumping to labels (currently doesn't support production builds disabling it)
120
- - Added saving and loading of the game (works by storing data, skills, skillchecks etc. When the game is reloaded, it is brought back at the last label visited)
121
- - Fixed a bug where conditional choices would play the wrong result if a choice is removed due to a condition
122
- - Made script loading and compilation happen during the initial loading, so everything is ready to play when pressing start game
123
- - Skill checks now also save and load their data, so a failed check becomes impossible to choose, and a succeeded skill check can be skipped if shown again