ludic.anim: animation sets - the game's src/animset moved in as it stood (records, AnimPlayer, animset_bind / request / param / tick and the accessors); AnimSets is an open @ByKey registry a game fills with def AnimSets from; a test on a rig of hand-made clips
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
d9a73d63bd
commit
5517873275
10 changed files with 442 additions and 1 deletions
20
packages/ludic.anim/tests/sets.lres
Normal file
20
packages/ludic.anim/tests/sets.lres
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# sets.lres - the test's one set: a ground state picking by speed bands, a one-shot that hands back,
|
||||
# and a hop the code never asks for, taken when toy_hops says so
|
||||
toy {
|
||||
entry: "ground"
|
||||
params: ["speed"]
|
||||
states: [
|
||||
{
|
||||
key: "ground"
|
||||
rate_min: 0.5, rate_max: 2.0, blend: 0.2
|
||||
choices: [
|
||||
{ clip: "run", rate_by: "speed", ground: 2.0, need: [{ param: "speed", over: 4.0 }] },
|
||||
{ clip: "walk", rate_by: "speed", ground: 4.0, need: [{ param: "speed", over: 0.5 }] },
|
||||
{ clip: "idle" }
|
||||
]
|
||||
},
|
||||
{ key: "wave", loop: false, next: "ground", choices: [{ clip: "wave" }] },
|
||||
{ key: "hop", choices: [{ clip: "hop" }] }
|
||||
]
|
||||
transitions: [{ from: "ground", to: "hop", blend: 0.1, when: fn toy_hops }]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue