Awesome
SFML-book
The code of the book I wrote "Sfml Blueprints" available here : https://www.packtpub.com/game-development/sfml-blueprints
Videos
chapter 3 : https://youtu.be/EpZT4FGFGu0
chapter 7 : https://www.youtube.com/watch?v=urs6nvBl6G8
chapter 8 : https://youtu.be/n8G1FpdjY1g
Requirements
- You need to have a valid clone of the SFML 2.2.x (https://github.com/LaurentGomila/SFML/releases/tag/2.2) and need to build it.
- A C++11 compiler (avoid Visual studio and prefer mingw for windows users)
Tested on
- Ubuntu x64 14.04, 16.04 (gcc, clang)
- Windows x64 8, 8.1 (mingw)
- Os X
Installation
- Clone this repo
git clone https://github.com/Krozark/SFML-book.git
- Once it's done, use Cmake to build the project.
cd path/to/SFML-Book
mkdir build
cd build
cmake-gui ..
- You will need to set the variable
- GLEW_INCLUDE_DIR to path/to/SFML/extlibs/headers
- GLEW_LIBRARY to path/to/SFML/extlibs/libs-[compiler]/x[32/64]/libglew32.a depending on your system
- press "configure" and "generate"
- your file is now generated in the path/to/SFML-Book/build/ directory. You can use it to build the entire book projects.
- notice that for windows user, you will have to copy the dll of the externals libraries to your system path
- the libraries are located into the path/to/SFML-Book/lib/ directory
Chapter 1: SFML Bases
<img src="https://raw.githubusercontent.com/Krozark/SFML-book/master/screen/Chapter1.png" alt="Chapter 1" height="250px">Chapter 2: Create a player and game loop
<img src="https://raw.githubusercontent.com/Krozark/SFML-book/master/screen/Chapter2.png" alt="Chapter 2" height="250px">Chapter 3: Create two games : Asteroid and Teris clone
<img src="https://raw.githubusercontent.com/Krozark/SFML-book/master/screen/Chapter3a.png" alt="Chapter 3" height="350px"> <img src="https://raw.githubusercontent.com/Krozark/SFML-book/master/screen/Chapter3b.png" alt="Chapter 3" height="350px">Chapter 4: Play with physics
<img src="https://raw.githubusercontent.com/Krozark/SFML-book/master/screen/Chapter4.png" alt="Chapter 4" height="450px">Chapter 5: Add a GUI
<img src="https://raw.githubusercontent.com/Krozark/SFML-book/master/screen/Chapter5a.png" alt="Chapter 5" height="250px"> <img src="https://raw.githubusercontent.com/Krozark/SFML-book/master/screen/Chapter5b.png" alt="Chapter 5" height="250px">Chapter 6: Multithreading
no graphical changes