sonolus-bandori-engine 1.0.0-beta.0 → 1.0.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/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`).
package/dist/EngineData CHANGED
Binary file
@@ -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, bgmOffset = 0) {
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, bgmOffset?: number): LevelData;
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.0-beta.0';
7
+ exports.version = '1.0.1';
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.0-beta.0";
3
+ export declare const version = "1.0.1";
4
4
  export declare const engineInfo: {
5
5
  readonly name: "bandori";
6
6
  readonly version: 8;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sonolus-bandori-engine",
3
- "version": "1.0.0-beta.0",
3
+ "version": "1.0.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",
@@ -18,16 +18,16 @@
18
18
  "build": "tsc -p ./lib/tsconfig.json && sonolus-cli --build && node ./lib/build.mjs"
19
19
  },
20
20
  "devDependencies": {
21
- "@types/node": "^16.18.28",
22
- "@typescript-eslint/eslint-plugin": "^5.59.1",
23
- "@typescript-eslint/parser": "^5.59.1",
24
- "eslint": "^8.39.0",
21
+ "@types/node": "^16.18.35",
22
+ "@typescript-eslint/eslint-plugin": "^5.59.9",
23
+ "@typescript-eslint/parser": "^5.59.9",
24
+ "eslint": "^8.42.0",
25
25
  "eslint-config-prettier": "^8.8.0",
26
26
  "eslint-plugin-prettier": "^4.2.1",
27
27
  "prettier": "^2.8.8",
28
28
  "prettier-plugin-organize-imports": "^3.2.2",
29
- "sonolus-core": "~7.0.0-beta.0",
30
- "sonolus.js": "~9.0.0-beta.0",
31
- "typescript": "~5.0.4"
29
+ "sonolus-core": "~7.0.0",
30
+ "sonolus.js": "~9.0.0",
31
+ "typescript": "~5.1.3"
32
32
  }
33
33
  }
package/dist/test.cjs DELETED
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const node_fs_1 = require("node:fs");
4
- const sonolus_core_1 = require("sonolus-core");
5
- const index_cjs_1 = require("./index.cjs");
6
- const chart = JSON.parse((0, node_fs_1.readFileSync)('./.dev/128-expert.json', 'utf8'));
7
- const levelData = (0, index_cjs_1.bestdoriToLevelData)(chart);
8
- (0, node_fs_1.writeFileSync)('./.dev/data', (0, sonolus_core_1.compressSync)(levelData));
9
- console.log(new Date(), 'Converted');
package/dist/test.d.cts DELETED
@@ -1 +0,0 @@
1
- export {};