This is a clone of the popular Stacker game which is found in malls and arcades.
Stacker uses SDL2 and SDL2_Image.
- Install SDL2 and SDL2_Image development libraries:
sudo apt-get install libsdl2-dev libsdl2-image-dev
- Compile with g++:
g++ *.cpp -o stacker `sdl2-config --cflags --libs` -lSDL2_image
To play the game, press spacebar to stop the moving block(s) on a row. Only stacked blocks remain. The game is won when the stack reaches the top of the grid.