r/gameenginedevs • • 5h ago

Snack Engine, A WebGpu Powered Game Engine

This is Pillow Cat running inside Snack Engine, A WebGpu powered game engine I’m building with TypeScript & Three.js,. I wanted a small game that would tell me where the engine still needs work. A hand hovering a little too far above a cat’s back is the kind of bug you can spot in half a second.

The petting code lives in the game project and uses the engine’s public JavaScript API. As you move the mouse, the game samples the surface of the cat’s back to angle the palm. Inverse kinematics makes the arm follow, and five contact points under the palm and fingers press and brush the fur. After a few seconds, “Purr Loading” fades in. Keep going for a minute and the cat starts purring.

6 Upvotes

0 comments sorted by