An example of how to shake the view/camera with SFML and C++.
ℹ️ Bad quality GIF
This project uses cmake
and SFML library:
sudo apt-get install cmake libsfml-dev
- Clone this repository
- Compile with
mkdir build && cd build && cmake .. && make
- Go to binary folder
cd ./bin
- Run with
./camshake
Background image come from openclipart.org, explosion sprite is from Pavel Kutejnikov and animated sprite class is available from SFML wiki.