Delve into my inaugural SFML programming experiment—a modest showcase of my budding coding skills. This project serves as a starting point, an exploration into the capabilities of SFML, and a testament to my initial foray into this library. Experiment with geometric shapes, adjust sizes, and explore rotations—it's a simple yet meaningful introduction to my journey with SFML. Join me in this humble presentation of my first steps in coding with SFML.
- Press 'c' to switch to a circle.
- Press 'r' to switch to a rectangle.
- Press 'p' to switch to a point (dot).
- Press 't' to switch to a triangle.
- Use arrow keys to move the active figure around the screen.
- Press 'i' to increase the size of the active figure.
- Press 's' to decrease the size of the active figure.
- Press 'q' to rotate the active figure counterclockwise.
- Press 'e' to rotate the active figure clockwise.
- Press 'd' to move the active figure one layer down.
- Press 'u' to move the active figure one layer up.
-
Requirements: Ensure you have SFML installed. You can download it here.
-
Clone the repository:
git clone https://github.com/smichajlidis/dancing-shapes.git cd dancing-shapes
-
Build using CMake:
mkdir build cd build cmake ..
-
Compile the project:
make
-
Run the simulator:
./dancing-shapes
Contributions are welcome! Feel free to open issues, submit pull requests, or suggest improvements.