sonolus-next-rush-engine 2.14.0 → 2.14.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.
Binary file
Binary file
@@ -1,7 +1,6 @@
1
- // Preserve Bandori's seven unit lanes. A matching camera half-width makes this
2
- // dynamic stage fill the same screen width as Next Rush's static 12-lane stage.
3
- const STAGE_SIZE = 7 / 2;
4
- const NOTE_SIZE = 0.5;
1
+ // Fit seven equal Bandori lanes across the static stage without camera zoom.
2
+ const LANE_SCALE = 12 / 7;
3
+ const NOTE_SIZE = LANE_SCALE / 2;
5
4
  const noteArchetypes = new Map([
6
5
  ['TapNote', 'NormalTapNote'],
7
6
  ['FlickNote', 'NormalFlickNote'],
@@ -43,44 +42,6 @@ export const bandoriToLeveldata = (bandori, offset = 0) => {
43
42
  };
44
43
  const create = (archetype, data, source) => ({ archetype, name: source?.name ?? newName(), data });
45
44
  const initialization = create('Initialization', [], bandori.entities.find((entity) => entity.archetype === 'Initialization'));
46
- const camera = create('CameraChange', [
47
- { name: '#BEAT', value: 0 },
48
- { name: 'lane', value: 0 },
49
- { name: 'size', value: STAGE_SIZE },
50
- { name: 'zoom', value: 1 },
51
- { name: 'stageTilt', value: 1 },
52
- ]);
53
- setRef(initialization, 'firstCamera', camera);
54
- const stage = create('Stage', [
55
- { name: 'fromStart', value: 1 },
56
- { name: 'untilEnd', value: 1 },
57
- ], bandori.entities.find((entity) => entity.archetype === 'Stage'));
58
- const mask = create('StageMaskChange', [
59
- { name: '#BEAT', value: 0 },
60
- { name: 'stage', ref: stage.name },
61
- { name: 'lane', value: 0 },
62
- { name: 'size', value: STAGE_SIZE },
63
- ]);
64
- const pivot = create('StagePivotChange', [
65
- { name: '#BEAT', value: 0 },
66
- { name: 'stage', ref: stage.name },
67
- { name: 'lane', value: 0 },
68
- { name: 'divisionSize', value: 1 },
69
- // Odd parity puts lane centers on integers and dividers on half-integers.
70
- { name: 'divisionParity', value: 1 },
71
- ]);
72
- const style = create('StageStyleChange', [
73
- { name: '#BEAT', value: 0 },
74
- { name: 'stage', ref: stage.name },
75
- { name: 'judgeLineColor', value: 5 },
76
- { name: 'laneAlpha', value: 1 },
77
- { name: 'judgeLineAlpha', value: 1 },
78
- { name: 'divisionLineAlpha', value: 1 },
79
- { name: 'noteAlpha', value: 1 },
80
- ]);
81
- setRef(stage, 'firstMaskChange', mask);
82
- setRef(stage, 'firstPivotChange', pivot);
83
- setRef(stage, 'firstStyleChange', style);
84
45
  const group = create('#TIMESCALE_GROUP', []);
85
46
  const change = create('#TIMESCALE_CHANGE', [
86
47
  { name: '#BEAT', value: 0 },
@@ -90,7 +51,7 @@ export const bandoriToLeveldata = (bandori, offset = 0) => {
90
51
  { name: '#TIMESCALE_GROUP', ref: group.name },
91
52
  ]);
92
53
  setRef(group, 'first', change);
93
- const entities = [initialization, camera, stage, mask, pivot, style, group, change];
54
+ const entities = [initialization, group, change];
94
55
  const notes = new Map();
95
56
  for (const source of bandori.entities) {
96
57
  if (source.archetype === '#BPM_CHANGE') {
@@ -110,7 +71,7 @@ export const bandoriToLeveldata = (bandori, offset = 0) => {
110
71
  const lane = getValue(source, 'lane') + (direction * (width - 1)) / 2;
111
72
  const note = create(archetype, [
112
73
  { name: '#BEAT', value: getValue(source, '#BEAT') },
113
- { name: 'lane', value: lane },
74
+ { name: 'lane', value: lane * LANE_SCALE },
114
75
  { name: 'size', value: width * NOTE_SIZE },
115
76
  { name: 'direction', value: direction < 0 ? 1 : direction > 0 ? 2 : 0 },
116
77
  { name: 'isAttached', value: 0 },
@@ -119,7 +80,6 @@ export const bandoriToLeveldata = (bandori, offset = 0) => {
119
80
  { name: 'segmentKind', value: 1 },
120
81
  { name: 'segmentAlpha', value: 1 },
121
82
  { name: '#TIMESCALE_GROUP', ref: group.name },
122
- { name: 'stage', ref: stage.name },
123
83
  ], source);
124
84
  notes.set(source, note);
125
85
  entities.push(note);
package/dist/index.d.ts CHANGED
@@ -10,7 +10,7 @@ import { USC } from './usc/index.js';
10
10
  export * from './usc/index.js';
11
11
  export { type ExtendedEntityData, type ExtendedEntityDataField, bandoriToLeveldata, extendedToLevelData, hldToLeveldata, mmwsToUSC, siriusToLeveldata, susToUSC, ucmmwsToLevelData, uscToLevelData, };
12
12
  export declare const convertToLevelData: (input: string | Uint8Array | USC | LevelData, offset?: number) => LevelData;
13
- export declare const version = "2.14.0";
13
+ export declare const version = "2.14.1";
14
14
  export declare const engineFullName: {
15
15
  readonly en: 'Next RUSH';
16
16
  };
package/dist/index.js CHANGED
@@ -90,7 +90,7 @@ export const convertToLevelData = (input, offset = 0) => {
90
90
  }
91
91
  return uscToLevelData(usc, offset, true, true);
92
92
  };
93
- export const version = '2.14.0';
93
+ export const version = '2.14.1';
94
94
  export const engineFullName = {
95
95
  en: 'Next RUSH',
96
96
  };
@@ -126,7 +126,7 @@ export const siriusToLeveldata = (sirius, offset = 0) => {
126
126
  archetype = 'NormalFlickNote';
127
127
  break;
128
128
  case 'Sirius Sound':
129
- archetype = isCriticalHold(source) ? 'CriticalTapNote' : 'NormalTapNote';
129
+ archetype = isCriticalHold(source) ? 'CriticalTickNote' : 'NormalTickNote';
130
130
  break;
131
131
  case 'Sirius Hold Eighth':
132
132
  archetype = 'TransientHiddenTickNote';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sonolus-next-rush-engine",
3
- "version": "2.14.0",
3
+ "version": "2.14.1",
4
4
  "description": "Perspective-lane rhythm game for Sonolus",
5
5
  "author": "Hyeon2",
6
6
  "repository": {