We already had a main loop for our game, but it didn’t to anything:D.
Here we’ll modify it to make it work with our board and our userInterface.
We keep the usual SFML headers, and we add our custom classes:
//////////////////////////////////////////////////////////// // main.cpp //////////////////////////////////////////////////////////// #include <sfml /Graphics.hpp> #include "board.h" #include "uInterface.h"
We create the window and we add a frame rate limit. By The Way if you don’t want to use anti aliasing replace the appropriate lines of code :
