sonolus-bandori-engine 1.4.0-alpha.3 → 1.4.1

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/LICENSE.txt CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 NonSpicyBurrito
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1
+ MIT License
2
+
3
+ Copyright (c) 2023 NonSpicyBurrito
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
package/README.md CHANGED
@@ -1,85 +1,85 @@
1
- # Sonolus Bandori Engine
2
-
3
- A recreation of BanG Dream! Girls Band Party engine in [Sonolus](https://sonolus.com).
4
-
5
- ## Links
6
-
7
- - [Sonolus Website](https://sonolus.com)
8
- - [Sonolus Wiki](https://github.com/NonSpicyBurrito/sonolus-wiki)
9
-
10
- ## Installation
11
-
12
- ```
13
- npm install sonolus-bandori-engine
14
- ```
15
-
16
- ## Custom Resources
17
-
18
- ### Skin Sprites
19
-
20
- | Name | Bandori Asset Path |
21
- | ---------------------------------------- | ----------------------------------------------------- |
22
- | `Bandori Stage` | `/ingameskin/fieldskin/{name}/bg_line_rhythm` |
23
- | `Bandori Judgment Line` | `/ingameskin/fieldskin/{name}/game_play_line` |
24
- | `Bandori Directional Flick Note Left` | `/ingameskin/noteskin/{name}/DirectionalFlickSprites` |
25
- | `Bandori Directional Flick Note Right` | `/ingameskin/noteskin/{name}/DirectionalFlickSprites` |
26
- | `Bandori Directional Flick Marker Left` | `/ingameskin/noteskin/{name}/DirectionalFlickSprites` |
27
- | `Bandori Directional Flick Marker Right` | `/ingameskin/noteskin/{name}/DirectionalFlickSprites` |
28
-
29
- ### Effect Clips
30
-
31
- | Name | Bandori Asset Path |
32
- | ---------------------------------- | ------------------------------------------ |
33
- | `Bandori Directional Flick Single` | `/sound/tapseskin/{name}/directional_fl` |
34
- | `Bandori Directional Flick Double` | `/sound/tapseskin/{name}/directional_fl_2` |
35
- | `Bandori Directional Flick Triple` | `/sound/tapseskin/{name}/directional_fl_3` |
36
-
37
- ### Particle Effects
38
-
39
- | Name |
40
- | ------------------------------------------ |
41
- | `Bandori Circular Directional Flick Left` |
42
- | `Bandori Linear Directional Flick Left` |
43
- | `Bandori Circular Directional Flick Right` |
44
- | `Bandori Linear Directional Flick Right` |
45
-
46
- ## Documentation
47
-
48
- ### `version`
49
-
50
- Package version.
51
-
52
- ### `databaseEngineItem`
53
-
54
- Partial database engine item compatible with [sonolus-express](https://github.com/NonSpicyBurrito/sonolus-express).
55
-
56
- ### `engineConfigurationPath`
57
-
58
- Path to Engine Configuration file.
59
-
60
- ### `enginePlayDataPath`
61
-
62
- Path to Engine Play Data file.
63
-
64
- ### `engineWatchDataPath`
65
-
66
- Path to Engine Watch Data file.
67
-
68
- ### `enginePreviewDataPath`
69
-
70
- Path to Engine Preview Data file.
71
-
72
- ### `engineTutorialDataPath`
73
-
74
- Path to Engine Tutorial Data file.
75
-
76
- ### `engineThumbnailPath`
77
-
78
- Path to Engine Thumbnail file.
79
-
80
- ### `bestdoriToLevelData(chart, offset?)`
81
-
82
- Converts Bestdori chart to Level Data.
83
-
84
- - `chart`: Bestdori chart.
85
- - `offset`: offset (default: `0`).
1
+ # Sonolus Bandori Engine
2
+
3
+ A recreation of BanG Dream! Girls Band Party engine in [Sonolus](https://sonolus.com).
4
+
5
+ ## Links
6
+
7
+ - [Sonolus Website](https://sonolus.com)
8
+ - [Sonolus Wiki](https://github.com/NonSpicyBurrito/sonolus-wiki)
9
+
10
+ ## Installation
11
+
12
+ ```
13
+ npm install sonolus-bandori-engine
14
+ ```
15
+
16
+ ## Custom Resources
17
+
18
+ ### Skin Sprites
19
+
20
+ | Name | Bandori Asset Path |
21
+ | ---------------------------------------- | ----------------------------------------------------- |
22
+ | `Bandori Stage` | `/ingameskin/fieldskin/{name}/bg_line_rhythm` |
23
+ | `Bandori Judgment Line` | `/ingameskin/fieldskin/{name}/game_play_line` |
24
+ | `Bandori Directional Flick Note Left` | `/ingameskin/noteskin/{name}/DirectionalFlickSprites` |
25
+ | `Bandori Directional Flick Note Right` | `/ingameskin/noteskin/{name}/DirectionalFlickSprites` |
26
+ | `Bandori Directional Flick Marker Left` | `/ingameskin/noteskin/{name}/DirectionalFlickSprites` |
27
+ | `Bandori Directional Flick Marker Right` | `/ingameskin/noteskin/{name}/DirectionalFlickSprites` |
28
+
29
+ ### Effect Clips
30
+
31
+ | Name | Bandori Asset Path |
32
+ | ---------------------------------- | ------------------------------------------ |
33
+ | `Bandori Directional Flick Single` | `/sound/tapseskin/{name}/directional_fl` |
34
+ | `Bandori Directional Flick Double` | `/sound/tapseskin/{name}/directional_fl_2` |
35
+ | `Bandori Directional Flick Triple` | `/sound/tapseskin/{name}/directional_fl_3` |
36
+
37
+ ### Particle Effects
38
+
39
+ | Name |
40
+ | ------------------------------------------ |
41
+ | `Bandori Circular Directional Flick Left` |
42
+ | `Bandori Linear Directional Flick Left` |
43
+ | `Bandori Circular Directional Flick Right` |
44
+ | `Bandori Linear Directional Flick Right` |
45
+
46
+ ## Documentation
47
+
48
+ ### `version`
49
+
50
+ Package version.
51
+
52
+ ### `databaseEngineItem`
53
+
54
+ Partial database engine item compatible with [sonolus-express](https://github.com/NonSpicyBurrito/sonolus-express).
55
+
56
+ ### `engineConfigurationPath`
57
+
58
+ Path to Engine Configuration file.
59
+
60
+ ### `enginePlayDataPath`
61
+
62
+ Path to Engine Play Data file.
63
+
64
+ ### `engineWatchDataPath`
65
+
66
+ Path to Engine Watch Data file.
67
+
68
+ ### `enginePreviewDataPath`
69
+
70
+ Path to Engine Preview Data file.
71
+
72
+ ### `engineTutorialDataPath`
73
+
74
+ Path to Engine Tutorial Data file.
75
+
76
+ ### `engineThumbnailPath`
77
+
78
+ Path to Engine Thumbnail file.
79
+
80
+ ### `bestdoriToLevelData(chart, offset?)`
81
+
82
+ Converts Bestdori chart to Level Data.
83
+
84
+ - `chart`: Bestdori chart.
85
+ - `offset`: offset (default: `0`).
Binary file
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.bestdoriToLevelData = void 0;
4
- const sonolus_core_1 = require("sonolus-core");
3
+ exports.bestdoriToLevelData = bestdoriToLevelData;
4
+ const core_1 = require("@sonolus/core");
5
5
  function bestdoriToLevelData(chart, offset = 0) {
6
6
  const entities = [];
7
7
  const beatToIntermediates = new Map();
@@ -25,7 +25,7 @@ function bestdoriToLevelData(chart, offset = 0) {
25
25
  data: [],
26
26
  };
27
27
  if (intermediate.sim) {
28
- const beat = intermediate.data[sonolus_core_1.EngineArchetypeDataName.Beat];
28
+ const beat = intermediate.data[core_1.EngineArchetypeDataName.Beat];
29
29
  if (typeof beat !== 'number')
30
30
  throw new Error('Unexpected beat');
31
31
  const intermediates = beatToIntermediates.get(beat);
@@ -87,13 +87,12 @@ function bestdoriToLevelData(chart, offset = 0) {
87
87
  entities,
88
88
  };
89
89
  }
90
- exports.bestdoriToLevelData = bestdoriToLevelData;
91
90
  const bpm = (object, append) => {
92
91
  append({
93
- archetype: sonolus_core_1.EngineArchetypeName.BpmChange,
92
+ archetype: core_1.EngineArchetypeName.BpmChange,
94
93
  data: {
95
- [sonolus_core_1.EngineArchetypeDataName.Beat]: object.beat,
96
- [sonolus_core_1.EngineArchetypeDataName.Bpm]: object.bpm,
94
+ [core_1.EngineArchetypeDataName.Beat]: object.beat,
95
+ [core_1.EngineArchetypeDataName.Bpm]: object.bpm,
97
96
  },
98
97
  sim: false,
99
98
  });
@@ -102,7 +101,7 @@ const single = (object, append) => {
102
101
  append({
103
102
  archetype: object.flick ? 'FlickNote' : 'TapNote',
104
103
  data: {
105
- [sonolus_core_1.EngineArchetypeDataName.Beat]: object.beat,
104
+ [core_1.EngineArchetypeDataName.Beat]: object.beat,
106
105
  lane: object.lane - 3,
107
106
  },
108
107
  sim: true,
@@ -112,7 +111,7 @@ const directional = (object, append) => {
112
111
  append({
113
112
  archetype: 'DirectionalFlickNote',
114
113
  data: {
115
- [sonolus_core_1.EngineArchetypeDataName.Beat]: object.beat,
114
+ [core_1.EngineArchetypeDataName.Beat]: object.beat,
116
115
  lane: object.lane - 3,
117
116
  direction: object.direction === 'Left' ? -1 : 1,
118
117
  size: object.width,
@@ -139,7 +138,7 @@ const longAndSlide = (object, append) => {
139
138
  {
140
139
  archetype: 'SlideStartNote',
141
140
  data: {
142
- [sonolus_core_1.EngineArchetypeDataName.Beat]: connection.beat,
141
+ [core_1.EngineArchetypeDataName.Beat]: connection.beat,
143
142
  lane: connection.lane - 3,
144
143
  },
145
144
  sim: true,
@@ -157,7 +156,7 @@ const longAndSlide = (object, append) => {
157
156
  const tail = {
158
157
  archetype: connection.flick ? 'SlideEndFlickNote' : 'SlideEndNote',
159
158
  data: {
160
- [sonolus_core_1.EngineArchetypeDataName.Beat]: connection.beat,
159
+ [core_1.EngineArchetypeDataName.Beat]: connection.beat,
161
160
  lane: connection.lane - 3,
162
161
  first,
163
162
  prev: start,
@@ -191,7 +190,7 @@ const longAndSlide = (object, append) => {
191
190
  const tail = {
192
191
  archetype: 'IgnoredNote',
193
192
  data: {
194
- [sonolus_core_1.EngineArchetypeDataName.Beat]: connection.beat,
193
+ [core_1.EngineArchetypeDataName.Beat]: connection.beat,
195
194
  lane: connection.lane - 3,
196
195
  },
197
196
  sim: false,
@@ -213,7 +212,7 @@ const longAndSlide = (object, append) => {
213
212
  const tail = {
214
213
  archetype: 'SlideTickNote',
215
214
  data: {
216
- [sonolus_core_1.EngineArchetypeDataName.Beat]: connection.beat,
215
+ [core_1.EngineArchetypeDataName.Beat]: connection.beat,
217
216
  lane: connection.lane - 3,
218
217
  first,
219
218
  prev: start,
@@ -1,3 +1,3 @@
1
- import { LevelData } from 'sonolus-core';
1
+ import { LevelData } from '@sonolus/core';
2
2
  import { BestdoriChart } from './index.cjs';
3
3
  export declare function bestdoriToLevelData(chart: BestdoriChart, offset?: number): LevelData;
package/dist/index.cjs CHANGED
@@ -19,7 +19,7 @@ const node_path_1 = require("node:path");
19
19
  var convert_cjs_1 = require("./bestdori/convert.cjs");
20
20
  Object.defineProperty(exports, "bestdoriToLevelData", { enumerable: true, get: function () { return convert_cjs_1.bestdoriToLevelData; } });
21
21
  __exportStar(require("./bestdori/index.cjs"), exports);
22
- exports.version = '1.4.0-alpha.3';
22
+ exports.version = '1.4.1';
23
23
  exports.databaseEngineItem = {
24
24
  name: 'bandori',
25
25
  version: 12,
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { bestdoriToLevelData } from './bestdori/convert.cjs';
2
2
  export * from './bestdori/index.cjs';
3
- export declare const version = "1.4.0-alpha.3";
3
+ export declare const version = "1.4.1";
4
4
  export declare const databaseEngineItem: {
5
5
  readonly name: "bandori";
6
6
  readonly version: 12;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sonolus-bandori-engine",
3
- "version": "1.4.0-alpha.3",
3
+ "version": "1.4.1",
4
4
  "description": "A recreation of BanG Dream! Girls Band Party engine in Sonolus",
5
5
  "author": "NonSpicyBurrito",
6
6
  "repository": "github:NonSpicyBurrito/sonolus-bandori-engine",
@@ -21,17 +21,18 @@
21
21
  "build": "tsc -p ./lib && sonolus-cli --build ./play && sonolus-cli --build ./watch && sonolus-cli --build ./preview && sonolus-cli --build ./tutorial && node ./lib/build.mjs"
22
22
  },
23
23
  "dependencies": {
24
- "sonolus-core": "7.5.0-alpha.4"
24
+ "@sonolus/core": "~7.9.0"
25
25
  },
26
26
  "devDependencies": {
27
- "@types/node": "^16.18.68",
28
- "@typescript-eslint/eslint-plugin": "^6.14.0",
29
- "@typescript-eslint/parser": "^6.14.0",
30
- "eslint": "^8.55.0",
27
+ "@eslint/js": "^9.9.0",
28
+ "@sonolus/sonolus.js": "~9.4.5",
29
+ "@types/eslint__js": "^8.42.3",
30
+ "@types/node": "^20.16.1",
31
+ "eslint": "^9.9.0",
31
32
  "eslint-config-prettier": "^9.1.0",
32
- "prettier": "^3.1.1",
33
- "prettier-plugin-organize-imports": "^3.2.4",
34
- "sonolus.js": "9.4.0-alpha.4",
35
- "typescript": "~5.3.3"
33
+ "prettier": "^3.3.3",
34
+ "prettier-plugin-organize-imports": "^4.0.0",
35
+ "typescript": "~5.5.4",
36
+ "typescript-eslint": "^8.2.0"
36
37
  }
37
38
  }