CNA Samples

2D Particles Pipeline

Ported from Microsoft's XNA 4.0 2D Particles Pipeline sample.

Source for this sample on GitHub ↗

Purple particles streaming from a moving emitter beside a broad smoke plume and the effect readout. Play ▸

Opens in a new tab.

About this sample

Four particle systems draw explosions, drifting smoke and a trail from a movable emitter. Their particle counts, textures, motion and blending come from settings compiled by the original XNA Content Pipeline. Switch effects to see how those settings change the result.

Controls

ActionKeyboard / mouseTouch / gamepad
Switch effectSpaceTap / A
Move emitterMove mouse in Emitter modeLeft stick on gamepad
ExitEscapeBack