CNA Samples

Game State Management

Ported from Microsoft's XNA 4.0 Game State Management sample for Windows and Xbox 360.

Source for this sample on GitHub ↗

The actual gameplay screen: a blue background, green TODO label and red Insert Gameplay Here text. Play ▸

Opens in a new tab.

About this sample

See how XNA manages a stack of menu, loading, gameplay and pause screens, with transitions and per-screen content. The simple gameplay text is the original sample's intentional placeholder.

Controls

ActionControl
Choose a menu itemUp / Down, then Enter
Move the gameplay labelArrow keys
Pause or go backEscape