Skip to content

Examples ​

Try a complete game or application, then explore the individual SFML features behind it.

Start here ​

Browse by topic ​

Feature examples

15 focused examples for System, Window, Graphics, Audio and Network.

Official examples

24 SFML ports with platform requirements and upstream credits.

ImGui examples

Native controls and a scene inspector with editable SFML graphics.

RmlUi examples

RML/RCSS interfaces with a working counter, themes and upstream tutorials.

Games and applications

Games in TypeScript, JavaScript and ClojureScript, with screenshots, controls and source links.

Before running ​

At the monorepo root, run node tools/bootstrap.cjs once, then cd packages/sfml.js. Run the commands below from that package directory. Use npm run build there after source changes. Graphics examples require a display and OpenGL; separate projects follow their own setup instructions.

sh
node examples/breakout.cjs
node examples/official/shader/Shader.cjs
node examples/network.cjs

Project home · Quick start · Development guide

Icons made by Lorc, Delapouite & Skoll game-icons.net · CC BY 3.0