sonolus-bandori-engine 1.0.0 → 1.0.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/LICENSE.txt +21 -0
- package/README.md +85 -0
- package/dist/bestdori/convert.cjs +2 -2
- package/dist/bestdori/convert.d.cts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/package.json +1 -1
package/LICENSE.txt
ADDED
|
@@ -0,0 +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
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +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
|
+
### `engineInfo`
|
|
53
|
+
|
|
54
|
+
Partial engine information compatible with [sonolus-express](https://github.com/NonSpicyBurrito/sonolus-express).
|
|
55
|
+
|
|
56
|
+
### `engineConfiguration`
|
|
57
|
+
|
|
58
|
+
Engine Configuration.
|
|
59
|
+
|
|
60
|
+
- `engineConfiguration.path`: path to file.
|
|
61
|
+
- `engineConfiguration.buffer`: buffer of file.
|
|
62
|
+
- `engineConfiguration.hash`: hash of file.
|
|
63
|
+
|
|
64
|
+
### `engineData`
|
|
65
|
+
|
|
66
|
+
Engine Data.
|
|
67
|
+
|
|
68
|
+
- `engineData.path`: path to file.
|
|
69
|
+
- `engineData.buffer`: buffer of file.
|
|
70
|
+
- `engineData.hash`: hash of file.
|
|
71
|
+
|
|
72
|
+
### `engineThumbnail`
|
|
73
|
+
|
|
74
|
+
Engine Thumbnail.
|
|
75
|
+
|
|
76
|
+
- `engineThumbnail.path`: path to file.
|
|
77
|
+
- `engineThumbnail.buffer`: buffer of file.
|
|
78
|
+
- `engineThumbnail.hash`: hash of file.
|
|
79
|
+
|
|
80
|
+
### `bestdoriToLevelData(chart, offset?)`
|
|
81
|
+
|
|
82
|
+
Converts Bestdori chart to Level Data.
|
|
83
|
+
|
|
84
|
+
- `chart`: Bestdori chart.
|
|
85
|
+
- `offset`: offset (default: `0`).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.bestdoriToLevelData = void 0;
|
|
4
4
|
const sonolus_core_1 = require("sonolus-core");
|
|
5
|
-
function bestdoriToLevelData(chart,
|
|
5
|
+
function bestdoriToLevelData(chart, offset = 0) {
|
|
6
6
|
const entities = [];
|
|
7
7
|
const beatToIntermediates = new Map();
|
|
8
8
|
const intermediateToRef = new Map();
|
|
@@ -88,7 +88,7 @@ function bestdoriToLevelData(chart, bgmOffset = 0) {
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
return {
|
|
91
|
-
bgmOffset,
|
|
91
|
+
bgmOffset: offset,
|
|
92
92
|
entities,
|
|
93
93
|
};
|
|
94
94
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { LevelData } from 'sonolus-core';
|
|
2
2
|
import { BestdoriChart } from './index.cjs';
|
|
3
|
-
export declare function bestdoriToLevelData(chart: BestdoriChart,
|
|
3
|
+
export declare function bestdoriToLevelData(chart: BestdoriChart, offset?: number): LevelData;
|
package/dist/index.cjs
CHANGED
|
@@ -4,7 +4,7 @@ exports.engineThumbnail = exports.engineData = exports.engineConfiguration = exp
|
|
|
4
4
|
const Resource_cjs_1 = require("./Resource.cjs");
|
|
5
5
|
var convert_cjs_1 = require("./bestdori/convert.cjs");
|
|
6
6
|
Object.defineProperty(exports, "bestdoriToLevelData", { enumerable: true, get: function () { return convert_cjs_1.bestdoriToLevelData; } });
|
|
7
|
-
exports.version = '1.0.
|
|
7
|
+
exports.version = '1.0.2';
|
|
8
8
|
exports.engineInfo = {
|
|
9
9
|
name: 'bandori',
|
|
10
10
|
version: 8,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Resource } from './Resource.cjs';
|
|
2
2
|
export { bestdoriToLevelData } from './bestdori/convert.cjs';
|
|
3
|
-
export declare const version = "1.0.
|
|
3
|
+
export declare const version = "1.0.2";
|
|
4
4
|
export declare const engineInfo: {
|
|
5
5
|
readonly name: "bandori";
|
|
6
6
|
readonly version: 8;
|
package/package.json
CHANGED