Skip to content

Krozark/SFML-book

Repository files navigation

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

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

Chapter 1

Chapter 2: Create a player and game loop

Chapter 2

Chapter 3: Create two games : Asteroid and Teris clone

Chapter 3

Chapter 3

Chapter 4: Play with physics

Chapter 4

Chapter 5: Add a GUI

Chapter 5

Chapter 5

Chapter 6: Multithreading

no graphical changes

Chapter 7: Create a Hybrid RTS/tower defence from sratch

Chapter 7

Chapter 8: Play with networking, and turn to a multiplayer our game

Chapter 8

Chapter 8