@chikn-game-assets/runtime 0.1.0 → 0.2.0

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/ATTRIBUTION.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Chikn community content
4
4
 
5
- Official Chikn, Roostr and FarmLand visual assets remain owned by Chikn and are distributed under the Chikn Community Asset Pack Non-Commercial Licence, Version 1.1.
5
+ Official Chikn, Roostr and FarmLand visual and audio assets remain owned by Chikn and are distributed under the Chikn Community Asset Pack Non-Commercial Licence, Version 1.1.
6
6
 
7
7
  Required attribution for every public project, repository, download page and redistributed copy:
8
8
 
@@ -10,7 +10,7 @@ Required attribution for every public project, repository, download page and red
10
10
 
11
11
  When redistributing, include the unmodified `CHIKN-COMMUNITY-ASSET-LICENSE_PUBLIC.md` and the applicable Asset Manifest. Modified assets must be identified as modified and unofficial as required by the licence.
12
12
 
13
- The repository does not grant commercial permission or claim ownership of protected visual content.
13
+ The repository does not grant commercial permission or claim ownership of protected visual or audio content.
14
14
 
15
15
  ## Independently authored project material
16
16
 
@@ -1,6 +1,6 @@
1
1
  # Chikn Community Asset Notice
2
2
 
3
- The Chikn, Roostr and FarmLand visual assets classified in
3
+ The Chikn, Roostr and FarmLand visual and audio assets classified in
4
4
  `manifests/rights-manifest.json` remain owned by Chikn. Chikn grants the
5
5
  applicable non-commercial rights directly to Community Users under the
6
6
  unmodified `CHIKN-COMMUNITY-ASSET-LICENSE_PUBLIC.md`, Version 1.1.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @chikn-game-assets/runtime
2
2
 
3
- Apache-2.0 TypeScript helpers and a generated ID catalog for a separately hosted Chikn Game Assets release. This npm package contains no source images or atlas PNGs and does not grant rights to Chikn, Roostr, or FarmLand artwork.
3
+ Apache-2.0 TypeScript helpers and a generated ID catalog for a separately hosted Chikn Game Assets release. This npm package contains no source images, audio, or runtime media and does not grant rights to Chikn, Roostr, or FarmLand content.
4
4
 
5
5
  ```sh
6
6
  npm install @chikn-game-assets/runtime
@@ -17,11 +17,11 @@ const asset = pack.findAsset('chikn-flat/admiral');
17
17
  console.log(CHIKN_CONTENT_TERMS.ownership);
18
18
  ```
19
19
 
20
- `baseUrl` must point to the directory containing `runtime/manifest.json`; no production host is embedded. It roots both the manifest and the atlas pages. Use `@roost2d/assets` and `@roost2d/pixi` for cached integrity-checked loading and cropped Pixi textures — that remains the recommended integration.
20
+ `baseUrl` must point to the directory containing `runtime/manifest.json`; no production host is embedded. It roots the manifest, atlas pages, and direct audio files. Use `@roost2d/assets` and `@roost2d/pixi` for cached integrity-checked loading and cropped Pixi textures — that remains the recommended image integration.
21
21
 
22
22
  ## Loading verified bytes without Roost2D
23
23
 
24
- `fetchAssetBytes` fetches a single atlas page and verifies its declared byte count and SHA-256 digest before returning it. It refuses variant paths that are absolute, traversing, percent-encoded, or off-origin, and aborts a response that overruns its declared size.
24
+ `fetchAssetBytes` fetches a single atlas page or direct audio file and verifies its declared byte count and SHA-256 digest before returning it. It refuses variant paths that are absolute, traversing, percent-encoded, or off-origin, and aborts a response that overruns its declared size.
25
25
 
26
26
  ```ts
27
27
  import { createChiknAssetCache, fetchAssetBytes, loadChiknPack } from '@chikn-game-assets/runtime';
@@ -33,9 +33,10 @@ const pack = await loadChiknPack({
33
33
  });
34
34
 
35
35
  const bytes = await fetchAssetBytes(pack, 'chikn-flat/admiral');
36
+ const sound = await fetchAssetBytes(pack, 'audio/bok-gark-01');
36
37
  ```
37
38
 
38
- Many logical IDs share one atlas page, so `fetchAssetBytes` is deliberately low-level and uncached — calling it per ID re-downloads the same bytes. For batches use `createChiknAssetCache(pack)`, which shares bytes only when the resolved URL, byte count, and integrity metadata all match, and exposes `unload(assetId)` and `clear()`.
39
+ Many logical image IDs share one atlas page, while each `audio/*` ID resolves to one direct MP3. `fetchAssetBytes` is deliberately low-level and uncached. For batches use `createChiknAssetCache(pack)`, which shares bytes only when the resolved URL, byte count, and integrity metadata all match, and exposes `unload(assetId)` and `clear()`.
39
40
 
40
41
  If you pass a bare `manifestUrl` instead of `baseUrl`, the asset root is not inferred from it. Supply `assetBaseUrl` explicitly, or asset resolution throws.
41
42
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schema": "chikn-game-assets.catalog/v1",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "generatedAt": "1970-01-01T00:00:00.000Z",
5
5
  "codeLicense": "Apache-2.0",
6
6
  "contentTermsId": "CHIKN-COMMUNITY-NONCOMMERCIAL",
@@ -238,6 +238,85 @@
238
238
  "assembled-unique/roostr/uniqueroostrsplit5845/torso",
239
239
  "assembled-unique/roostr/uniqueroostrsplit5845/wing-a",
240
240
  "assembled-unique/roostr/uniqueroostrsplit5845/wing-b",
241
+ "audio/alternate-arrow-hit",
242
+ "audio/arena-yell",
243
+ "audio/arrow-hits-01",
244
+ "audio/arrow-hits-02",
245
+ "audio/arrow-hits-03",
246
+ "audio/arrow-hits-04",
247
+ "audio/bok-gark-01",
248
+ "audio/bok-gark-02",
249
+ "audio/bok-gark-03",
250
+ "audio/bok-gark-04",
251
+ "audio/bok-gark-05",
252
+ "audio/bok-gark-06",
253
+ "audio/bok-gark-07",
254
+ "audio/bok-gark-08",
255
+ "audio/boomerang",
256
+ "audio/cartoon-missile-01",
257
+ "audio/cartoon-missile-02",
258
+ "audio/cut-01",
259
+ "audio/cut-02",
260
+ "audio/cut-03",
261
+ "audio/cut-04",
262
+ "audio/damage-taken-boks-01",
263
+ "audio/damage-taken-boks-02",
264
+ "audio/damage-taken-boks-03",
265
+ "audio/damage-taken-boks-04",
266
+ "audio/damage-taken-boks-05",
267
+ "audio/explosion-01",
268
+ "audio/explosion-02",
269
+ "audio/explosion-03",
270
+ "audio/fart-01",
271
+ "audio/fart-02",
272
+ "audio/fart-03",
273
+ "audio/fart-04",
274
+ "audio/human-bok-01",
275
+ "audio/human-bok-02",
276
+ "audio/human-bok-03",
277
+ "audio/human-bok-04",
278
+ "audio/human-bok-05",
279
+ "audio/human-bok-06",
280
+ "audio/human-bok-07",
281
+ "audio/projectile-01",
282
+ "audio/projectile-02",
283
+ "audio/projectile-03",
284
+ "audio/projectile-ricochet-01",
285
+ "audio/projectile-ricochet-02",
286
+ "audio/projectile-ricochet-03",
287
+ "audio/projectile-ricochet-04",
288
+ "audio/real-chicken-bok-01",
289
+ "audio/real-chicken-bok-02",
290
+ "audio/real-chicken-bok-03",
291
+ "audio/real-chicken-bok-04",
292
+ "audio/real-chicken-bok-05",
293
+ "audio/real-chicken-bok-06",
294
+ "audio/real-chicken-bok-07",
295
+ "audio/real-chicken-bok-08",
296
+ "audio/real-chicken-bok-gark-01",
297
+ "audio/real-chicken-bok-gark-02",
298
+ "audio/real-chicken-bok-gark-03",
299
+ "audio/real-chicken-bok-gark-04",
300
+ "audio/real-chicken-bok-gark-05",
301
+ "audio/real-chicken-bok-gark-06",
302
+ "audio/slap-01",
303
+ "audio/slap-02",
304
+ "audio/slap-03",
305
+ "audio/slap-04",
306
+ "audio/slap-05",
307
+ "audio/songs/cf-pre-game-loop-01",
308
+ "audio/squeak-chicken-01",
309
+ "audio/squeak-chicken-02",
310
+ "audio/squeak-chicken-03",
311
+ "audio/squeak-chicken-04",
312
+ "audio/swipe-inpact-01",
313
+ "audio/swipe-inpact-02",
314
+ "audio/swipe-inpact-03",
315
+ "audio/thud-01",
316
+ "audio/thud-02",
317
+ "audio/thud-03",
318
+ "audio/ui-select",
319
+ "audio/unsheath",
241
320
  "chikn-flat/actionshorts-body",
242
321
  "chikn-flat/actionshorts-panta",
243
322
  "chikn-flat/actionshorts-pantb",
@@ -2532,6 +2611,7 @@
2532
2611
  ],
2533
2612
  "bundleIds": [
2534
2613
  "assembled-unique",
2614
+ "audio",
2535
2615
  "chikn-flat",
2536
2616
  "chikn-rig",
2537
2617
  "chikn-traits",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chikn-game-assets/runtime",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Apache-2.0 manifest helpers for Chikn community non-commercial assets.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": { "type": "git", "url": "git+https://github.com/Roost2D/chikn-game-assets.git", "directory": "packages/runtime" },