@waica/archetype-isometric 0.12.0 → 0.14.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/assets/ATTRIBUTION.md +29 -0
- package/assets/waica-iso-hit.ogg +0 -0
- package/assets/waica-iso-hurt.ogg +0 -0
- package/assets/waica-iso-sword-swing.ogg +0 -0
- package/assets/waica-iso-town-theme.ogg +0 -0
- package/dist/art.js +12 -8
- package/dist/index.d.ts +1 -0
- package/dist/manifest.d.ts +1 -0
- package/dist/manifest.js +3 -0
- package/dist/prefabs.js +6 -3
- package/dist/registry.js +4 -0
- package/package.json +3 -3
package/assets/ATTRIBUTION.md
CHANGED
|
@@ -105,3 +105,32 @@ remain at the human-approved 16 texels per render unit.
|
|
|
105
105
|
- Placeholder-quality by design: exact visual polish is out of scope for
|
|
106
106
|
this run and is the human-verified part of CA-8/CA-12 — a human is free
|
|
107
107
|
to swap this file for a nicer diamond later without touching any code.
|
|
108
|
+
|
|
109
|
+
## Audio
|
|
110
|
+
|
|
111
|
+
All four sound files are Creative Commons Zero (CC0). The three effects ship
|
|
112
|
+
byte-for-byte as distributed; only the music was re-encoded (see below).
|
|
113
|
+
|
|
114
|
+
### Sound effects
|
|
115
|
+
|
|
116
|
+
- **RPG Audio** and **Impact Sounds** by Kenney Vleugels (Kenney.nl)
|
|
117
|
+
- Sources: https://kenney.nl/assets/rpg-audio and
|
|
118
|
+
https://kenney.nl/assets/impact-sounds
|
|
119
|
+
- Licence shown by each pack's `License.txt`: **Creative Commons Zero, CC0**.
|
|
120
|
+
Kenney states: "Credit (Kenney or www.kenney.nl) would be nice but is not
|
|
121
|
+
mandatory."
|
|
122
|
+
- `waica-iso-sword-swing.ogg` is `knifeSlice.ogg` from RPG Audio.
|
|
123
|
+
- `waica-iso-hit.ogg` is `chop.ogg` from RPG Audio.
|
|
124
|
+
- `waica-iso-hurt.ogg` is `impactPunch_medium_000.ogg` from Impact Sounds.
|
|
125
|
+
|
|
126
|
+
### Music
|
|
127
|
+
|
|
128
|
+
- **Town Theme RPG** by cynicmusic
|
|
129
|
+
- Source: https://opengameart.org/content/town-theme-rpg
|
|
130
|
+
- Licence shown by the submission page: **CC0**. The author asks for
|
|
131
|
+
`cynicmusic.com pixelsphere.org` as credit, which CC0 does not require and
|
|
132
|
+
this file gives anyway.
|
|
133
|
+
- `waica-iso-town-theme.ogg` is the pack's `TownTheme.mp3` re-encoded to Ogg
|
|
134
|
+
Vorbis (`ffmpeg -c:a vorbis -q:a 3 -ar 44100`), 97.5 s, no edits to the
|
|
135
|
+
audio itself. Vorbis rather than Opus so the file plays on the Safari 16.4+
|
|
136
|
+
baseline the spec commits to; Opus in Ogg needs Safari 17.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/art.js
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
/** Stock art as Node-safe package data. */
|
|
2
2
|
export const ISOMETRIC_ART = [
|
|
3
|
-
{ file: 'waica-iso-hero.png', uri: 'waica:iso-hero' },
|
|
4
|
-
{ file: 'waica-iso-villager.png', uri: 'waica:iso-villager' },
|
|
5
|
-
{ file: 'waica-iso-orc.png', uri: 'waica:iso-orc' },
|
|
6
|
-
{ file: 'waica-iso-ground.png', uri: 'waica:iso-ground' },
|
|
7
|
-
{ file: 'waica-iso-tree.png', uri: 'waica:iso-tree' },
|
|
8
|
-
{ file: 'waica-iso-rock.png', uri: 'waica:iso-rock' },
|
|
9
|
-
{ file: 'waica-iso-crate.png', uri: 'waica:iso-crate' },
|
|
10
|
-
{ file: 'waica-iso-click-marker.png', uri: 'waica:iso-click-marker' },
|
|
3
|
+
{ file: 'waica-iso-hero.png', uri: 'waica:iso-hero', kind: 'image' },
|
|
4
|
+
{ file: 'waica-iso-villager.png', uri: 'waica:iso-villager', kind: 'image' },
|
|
5
|
+
{ file: 'waica-iso-orc.png', uri: 'waica:iso-orc', kind: 'image' },
|
|
6
|
+
{ file: 'waica-iso-ground.png', uri: 'waica:iso-ground', kind: 'image' },
|
|
7
|
+
{ file: 'waica-iso-tree.png', uri: 'waica:iso-tree', kind: 'image' },
|
|
8
|
+
{ file: 'waica-iso-rock.png', uri: 'waica:iso-rock', kind: 'image' },
|
|
9
|
+
{ file: 'waica-iso-crate.png', uri: 'waica:iso-crate', kind: 'image' },
|
|
10
|
+
{ file: 'waica-iso-click-marker.png', uri: 'waica:iso-click-marker', kind: 'image' },
|
|
11
|
+
{ file: 'waica-iso-sword-swing.ogg', uri: 'waica:iso-sword-swing', kind: 'sound' },
|
|
12
|
+
{ file: 'waica-iso-hit.ogg', uri: 'waica:iso-hit', kind: 'sound' },
|
|
13
|
+
{ file: 'waica-iso-hurt.ogg', uri: 'waica:iso-hurt', kind: 'sound' },
|
|
14
|
+
{ file: 'waica-iso-town-theme.ogg', uri: 'waica:iso-town-theme', kind: 'sound' },
|
|
11
15
|
];
|
package/dist/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export declare const ARCHETYPE: {
|
|
|
22
22
|
actionLabels: Readonly<Record<string, string>>;
|
|
23
23
|
bundle: import("@waica/engine").ArchetypeBundle;
|
|
24
24
|
animation: import("@waica/engine").DirectionalAnimation<string>;
|
|
25
|
+
music: string;
|
|
25
26
|
registry: import("@waica/engine").SceneRegistry;
|
|
26
27
|
artUrls: Record<string, string>;
|
|
27
28
|
};
|
package/dist/manifest.d.ts
CHANGED
package/dist/manifest.js
CHANGED
|
@@ -29,4 +29,7 @@ export const ARCHETYPE = {
|
|
|
29
29
|
actionLabels: ISOMETRIC_ACTION_LABELS,
|
|
30
30
|
bundle: ISOMETRIC_BUNDLE,
|
|
31
31
|
animation: ISOMETRIC_ANIMATION,
|
|
32
|
+
// G8: the archetype's own looping music bed. The generic project
|
|
33
|
+
// template (and examples/isometric/src/main.ts) start it if present.
|
|
34
|
+
music: 'waica:iso-town-theme',
|
|
32
35
|
};
|
package/dist/prefabs.js
CHANGED
|
@@ -96,9 +96,12 @@ export const ISOMETRIC_PREFABS = {
|
|
|
96
96
|
},
|
|
97
97
|
},
|
|
98
98
|
{ type: 'Hitbox', props: { width: 0.8, height: 0.8 } },
|
|
99
|
-
{ type: 'MeleeAttack' },
|
|
99
|
+
{ type: 'MeleeAttack', props: { swingSound: 'waica:iso-sword-swing' } },
|
|
100
100
|
{ type: 'Respawnable' },
|
|
101
|
-
{
|
|
101
|
+
{
|
|
102
|
+
type: 'Health',
|
|
103
|
+
props: { max: 3, invulnerability: 1, stat: 'health', hurtSound: 'waica:iso-hurt' },
|
|
104
|
+
},
|
|
102
105
|
{
|
|
103
106
|
type: 'ClickToMove',
|
|
104
107
|
props: {
|
|
@@ -153,7 +156,7 @@ export const ISOMETRIC_PREFABS = {
|
|
|
153
156
|
},
|
|
154
157
|
{ type: 'Hitbox', props: { width: 0.8, height: 0.7 } },
|
|
155
158
|
{ type: 'Hazard', props: { stompable: false, contactDamage: 1 } },
|
|
156
|
-
{ type: 'Health', props: { max: 2, invulnerability: 0.3 } },
|
|
159
|
+
{ type: 'Health', props: { max: 2, invulnerability: 0.3, hurtSound: 'waica:iso-hit' } },
|
|
157
160
|
],
|
|
158
161
|
},
|
|
159
162
|
'objects/crate': {
|
package/dist/registry.js
CHANGED
|
@@ -10,6 +10,10 @@ export const ISOMETRIC_ART_URLS = {
|
|
|
10
10
|
'waica-iso-rock.png': new URL('../assets/waica-iso-rock.png', import.meta.url).href,
|
|
11
11
|
'waica-iso-crate.png': new URL('../assets/waica-iso-crate.png', import.meta.url).href,
|
|
12
12
|
'waica-iso-click-marker.png': new URL('../assets/waica-iso-click-marker.png', import.meta.url).href,
|
|
13
|
+
'waica-iso-sword-swing.ogg': new URL('../assets/waica-iso-sword-swing.ogg', import.meta.url).href,
|
|
14
|
+
'waica-iso-hit.ogg': new URL('../assets/waica-iso-hit.ogg', import.meta.url).href,
|
|
15
|
+
'waica-iso-hurt.ogg': new URL('../assets/waica-iso-hurt.ogg', import.meta.url).href,
|
|
16
|
+
'waica-iso-town-theme.ogg': new URL('../assets/waica-iso-town-theme.ogg', import.meta.url).href,
|
|
13
17
|
};
|
|
14
18
|
const BUILTIN_ASSETS = Object.fromEntries(ISOMETRIC_ART.map((art) => [art.uri, ISOMETRIC_ART_URLS[art.file] ?? art.uri]));
|
|
15
19
|
export const ISOMETRIC_REGISTRY = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@waica/archetype-isometric",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Waica isometric archetype — logical-grid action adventures with screen-relative movement",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@waica/behaviors": "^0.
|
|
28
|
-
"@waica/engine": "^0.
|
|
27
|
+
"@waica/behaviors": "^0.14.0",
|
|
28
|
+
"@waica/engine": "^0.14.0"
|
|
29
29
|
}
|
|
30
30
|
}
|