/object_control

Control rectangle object by pressing keyboard buttons. Also shows translate coordinates by x & y from center

Primary LanguageC++

object_control

Control rectangle object by pressing keyboard buttons. Also shows rotate and translate coordinates by x & y from center

Requirements:
sudo apt install g++
sudo apt install freeglut3 freeglut3-dev
sudo apt install libpng12-dev
sudo apt install libpng-devel
Controls:
  • num 8 - up
  • num 2 - down
  • num 4 - left
  • num 6 - right
  • num 7 - up-left
  • num 9 - up-right
  • num 1 - down-left
  • num 3 - down-right
  • num 5 - random position and rotate angle
  • num + - always rotate each turn on makes a turn in different directions
  • num - - always translate each activate makes a translate in different direction by x
  • arrow up - up
  • arrow down - down
  • arrow left - rotate left
  • arrow right - rotate right
  • f11 - fullscreen
  • esc - exit