Skip to content

Walk creatures on jointed legs with real gaits - #9

Merged
vaprdev merged 10 commits into
mainfrom
creatures
Oct 10, 2026
Merged

vaprdev merged 10 commits into
mainfrom
creatures

Conversation

@vaprdev

@vaprdev vaprdev commented Oct 10, 2026

Copy link
Copy Markdown
Owner

Summary

Creatures slid along with stiff legs, flipped when turning and varied in scale between scenes. A new src/creature.ts gives them jointed legs and real walk cycles.

+src/creature.ts
+  body(x, y, S, turn)      pose in body coordinates
+  stepGait(g, d/stride)    step cycle advances with distance walked, so feet don't slide;
+                           eases start/stop, turns through three-quarter view, springy lag
+  quadruped(), limb()      jointed legs in diagonal pairs, two-segment limbs
+  stride(), bob(), chain() foot steps, body rise, tapered tails and necks

Applied to farm animals and the farmer, dinosaurs, tundra animals (fox brought down to size), the desert coyote, jungle jaguar and monkey, beach dolphins and crab, the zen heron (at koi scale), city pedestrians and the ocean's reef fish and turtle. Exported from the API and documented.

Evidence

Before (main) on the left, after on the right.

creatures

creatures 2

Verification: bun run typecheck passes; CI's check job runs dev/check.ts on this branch.

Merge Danger

Door: two-way

Blast Radius: visuals

Every wallpaper with animals or people.

Merged together with the other visual improvements in #1; this PR's CI screenshot check fails by design because screenshots are regenerated there.

@vaprdev
vaprdev merged commit fefad88 into main Oct 10, 2026
1 of 2 checks passed
@vaprdev
vaprdev deleted the creatures branch October 10, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant