About Avoid And Constrain (Flash Games)
Avoid And Constrain is a classic release for Flash Games. Playable directly in your web browser without third-party plugins, this title runs at a locked 60 frames per second using client-side WebAssembly.
The ball in this example uses 2 prototype functions that each add an avoid mouse and a constrain to box behavior to that ball. The avoiding is handled by determining mouse distance from the object while constrain uses get bounds to keep it within the bounds of another object (in this case, the box).
Active Controller & Keyboard Bindings
Your custom bindings are saved automatically per console and work immediately inside the emulator.
| Console Input | Keyboard Key | Gamepad Button | In-Game Action | Edit |
|---|