This project is a small 3D cube simulation built with C++ and SFML. It renders a cube whose faces can be rotated using the keyboard.
- Install SFML (version 2.5 or newer).
- Generate the build files with CMake:
cmake -S so-cube -B build
- Build the executable:
cmake --build build
- Run the program:
./build/so_cube
- Arrow keys – move the cube on the X and Y axes.
=/-– move the cube along the Z axis.1/2– rotate around the X axis.3/4– rotate around the Y axis.5/6– rotate around the Z axis.F/G– rotate the front face.B/N– rotate the back face.U/I– rotate the top face.D/S– rotate the bottom face.R/T– rotate the right face.L/K– rotate the left face.