I created a particle animation based on the SFML documentation tutorial and other tips I found on the internet and tried to summarize it as much as possible to make it simpler to understand the whole process.
Knowing how to create a particle animation is important for many situations, for example, if you are creating a game that has a rocket, it could be the combustion animation that will appear in the tail, or a volcano and so on.
Animations are not only used by games, but also by many other concepts such as: Introduction, Animation in Movies, and among others. I’ve made the code available on GitHub for anyone who wants to review it. If you want to test on your system, proceed as follows:
Now just clone the repository, enter it and run:
I also created a video by writing the code from scratch, however the video is in Brazilian Portuguese. But it is possible for you to watch the development of the code that is universal, or even use Youtube’s automatic translation for your language.