Skip to content

ShulganRoman/cube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 

Repository files navigation

Cube

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.

Building

  1. Install SFML (version 2.5 or newer).
  2. Generate the build files with CMake:
    cmake -S so-cube -B build
  3. Build the executable:
    cmake --build build
  4. Run the program:
    ./build/so_cube

Controls

  • 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors