16 Games in C++/SFML

1 min read cpp, game, sfml

Written in 2022. Tools, APIs and prices may have changed since.

Lab note What I wrote down while learning this by building with it. Short by design; the code is in pfeilbr/16-games-in-c--sfml.

Build and Run

Can compile each from command line on Mac via

# clang
clang++ \
-framework sfml-window \
-framework sfml-graphics \
-framework sfml-system \
-framework sfml-audio \
-framework sfml-network \
main.cpp -o main

# gcc
g++ \
-framework sfml-window \
-framework sfml-graphics \
-framework sfml-system \
-framework sfml-audio \
-framework sfml-network \
main.cpp -o main

# run
./main

NOTE: assumes SFML installed. Frameworks should exist in /Library/Frameworks

Keep learning

Get new guides and courses by email

An occasional email when I publish a new guide, course or post. No spam, and you can unsubscribe any time.

Sent with Buttondown. I never share your address. Prefer a feed? Use the RSS feed.