A Snake game built purely with Fuchsia Flatland2 solid-color layers (CreateLayer, SetLayerProperties with CompositionMode::SolidColor, CreateLayerStack, and SetStackLayers), without any extra drawing libraries or image buffers.
Arrow Keys or W / A / S / D: Steer the snakeSpace or P: Pause / ResumeEnter or R: RestartAdd as a session element with an explicit --name so it can be easily removed later:
ffx session add --name snake-flatland fuchsia-pkg://fuchsia.com/flatland-examples#meta/snake-flatland.cm
To stop and remove the element from the session:
ffx session remove snake-flatland