Link with - -lpthread -lsfml-graphics -lsfml-window -lsfml-system
I saw some youtube video about this and I thought I'd have a go. After playing around with a few things inside the code I came up with this.
https://www.youtube.com/watch?v=3elp8gYnXTU&ab_channel=CarlNorwood