diff options
| author | Giuseppe Gadola <giusgadola@gmail.com> | 2023-03-07 11:40:37 +0100 |
|---|---|---|
| committer | Giuseppe Gadola <giusgadola@gmail.com> | 2023-03-07 11:41:11 +0100 |
| commit | 07f451721a366dd263cdc5b2479a7bc94f6a550a (patch) | |
| tree | 37d86146a2bf6eb083843f269444ac100162f0b2 /lua/pets | |
| parent | refactor(animations): repeat current action with next_actions[1] (diff) | |
refactor(animations): explicitly decleare first action
Diffstat (limited to 'lua/pets')
| -rw-r--r-- | lua/pets/pets/dog.lua | 1 | ||||
| -rw-r--r-- | lua/pets/pets/slime.lua | 8 |
2 files changed, 6 insertions, 3 deletions
diff --git a/lua/pets/pets/dog.lua b/lua/pets/pets/dog.lua index 26053d4..ad075db 100644 --- a/lua/pets/pets/dog.lua +++ b/lua/pets/pets/dog.lua @@ -10,6 +10,7 @@ return { walk_left = { "walk_left", "run_left", "idle" }, }, idle_actions = { "idle", "sit", "liedown" }, + first_action = "idle", movements = { right = { normal = { "walk" }, diff --git a/lua/pets/pets/slime.lua b/lua/pets/pets/slime.lua index 55b4dcf..794056f 100644 --- a/lua/pets/pets/slime.lua +++ b/lua/pets/pets/slime.lua @@ -1,17 +1,19 @@ return { next_actions = { idle_blink = { "idle_blink", "idle_wobble", "walk", "walk_left", "run", "run_left" }, - idle_wobble = { "divide" }, + idle_wobble = { "idle_wobble", "idle_blink", "walk", "walk_left", "run", "run_left", "divide" }, walk = { "walk", "idle_blink", "run" }, run = { "run", "walk", "run_left", "idle_wobble" }, walk_left = { "walk_left", "run_left", "idle_blink", "idle_wobble" }, run_left = { "run_left", "walk_left", "run", "idle_wobble" }, -- - divide = { "split_walk" }, - split_walk = { "split_walk", "join" }, + divide = { "split_walk", "split_idle" }, + split_walk = { "split_walk", "split_idle", "join" }, + split_idle = { "split_idle", "split_walk" }, join = { "idle_wobble" }, }, idle_actions = { "idle_wobble", "idle_blink" }, + first_action = "idle_blink", movements = { right = { normal = { "walk" }, |