Samples 13–24 of 91
-
Spacewar
Two-player starship combat in classic Retro lines or textured Evolved 3D.
-
Bounce
One hundred lit spheres, implicit collision response and gravity controlled by tilt or arrow keys.
-
Collision Sample
Animated triangle and oriented-box collision tests alongside XNA's geometric primitives.
-
Per-Pixel Collision
Falling blocks only hit when their visible pixels touch the player, not just their rectangles.
-
Rectangle Collision
A falling block counts as a hit when its rectangle overlaps the player's, even if their visible pixels miss.
-
Transformed Collision
Rotated falling blocks only hit when their visible pixels touch the player.
-
Transformed Collision Test
Drag, rotate and scale two sprites to explore transformed per-pixel collision.
-
Path Drawing
Draw a route from the tank with touch or mouse and watch it follow the waypoints.
-
Pathfinding
Compare three route-finding algorithms across four maps, then watch the tank follow the path.
-
Waypoint Navigation
Place waypoints for a tank, then compare direct movement with smooth steering.
-
Flocking
Tune how birds gather, separate and flee from a cat.
-
Chase and Evade
Move the cat while a tank chases it and a mouse flees or wanders nearby.