CNA Samples

Soccer Pitch

Ported from Microsoft's XNA 4.0 Soccer Pitch sample for Windows Phone.

Source for this sample on GitHub ↗

Soccer Pitch gameplay showing the textured football, white field markings and its solid black shadow. Play ▸

Opens in a new tab. Touch the game or click it with the left mouse button to switch line rendering.

About this sample

Explore a procedurally built football pitch with two independently tiled grass textures, white painted lines, an animated camera, a textured ball and its shadow. A touch changes the line rendering between Alpha-Blend and Alpha-Test.

Controls

ActionControl
Switch line renderingTouch and release, or left-click, anywhere on the game
ExitGamepad Back