A mass-spring system consisting of a four-legged beetle and a die. When playing dice the resulting number is detected, and the beetle runs the according number of steps forward. Collision detection and friction is implemented between objects and the floor. The beetle is animated by changing the initial lengths of three springs per leg.