Chase and Evade
Ported from Microsoft's XNA 4.0 Chase and Evade sample.
Source for this sample on GitHub ↗
Play ▸
Opens in a new tab. Move the cat with the arrow keys or hold the left mouse button to guide it.
About this sample
Guide the cat toward the tank or the mouse. The tank turns to chase the cat and stops when it catches up; the mouse flees when the cat gets close. Both wander when the cat is far away. Their current states appear on screen.
Controls
| Action | Keyboard | Mouse | Gamepad |
|---|---|---|---|
| Move the cat | Arrow keys | Hold left button at the destination | Left thumbstick or D-pad |
| Exit | Escape | — | Back |