osu-beatmap-renderer 0.1.0 → 0.1.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 CHANGED
@@ -10,23 +10,6 @@ npm install osu-beatmap-renderer pixi.js
10
10
 
11
11
  `pixi.js` is a peer dependency (use v7 or newer).
12
12
 
13
- ## Quick start
14
-
15
- ```js
16
- import { BeatmapEngine } from "osu-beatmap-renderer";
17
-
18
- const engine = new BeatmapEngine(document.getElementById("renderer"));
19
- await engine.init();
20
- await engine.loadBeatmap({
21
- osuUrl: "https://example.com/beatmap.osu",
22
- audioUrl: "https://example.com/audio.mp3",
23
- backgroundUrl: "https://example.com/bg.jpg",
24
- });
25
- engine.play();
26
- ```
27
-
28
- You can pass `osuText` instead of `osuUrl` if you already have the file as a string.
29
-
30
13
  ## Build from source
31
14
 
32
15
  ```bash
@@ -840,7 +840,7 @@ function adjustAnchorPositions(anchorPositions, layout) {
840
840
  anchor.y = layout.topLeftY + anchor.y * layout.gridUnit;
841
841
  }
842
842
  }
843
- const DEFAULT_AUDIO_OFFSET_MS = 200;
843
+ const DEFAULT_AUDIO_OFFSET_MS = 100;
844
844
  let globalAudioOffsetMs = DEFAULT_AUDIO_OFFSET_MS;
845
845
  const listeners = /* @__PURE__ */ new Set();
846
846
  function getGlobalAudioOffsetMs() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "osu-beatmap-renderer",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Standalone osu! beatmap renderer powered by PixiJS. Parses .osu files and renders hit objects with hitsounds.",
5
5
  "type": "module",
6
6
  "main": "dist/osu-beatmap-renderer.js",