Collision Emulator (code below)


This sample demonstrates how collisions are handled by the Tumbleweed Framework. It handles collisions between segments, boxes and circles.

In this demonstration, somes boxes and circles are moving randomly and everytime two objects hit, they become red. Keep the ENTER key pressed to align the objects. Release the key to let them move freely.

If you want to enable focus on the game, just click on it. Click somewhere else to disable it.

Game Focus: [OFF]

More details are in the section below. Source code is on the right and the matching comments are on the left.

Canvas not supported