Advertisement
Guest User

Untitled

a guest
Dec 14th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. void up() {
  2. while(sf::Keyboard::isKeyPressed(sf::Keyboard::Up))
  3.  
  4.         {
  5.         form1_y = form1_y - 1;
  6.         form1_k_calculate(form1_x, form1_y);
  7.         colorform1();
  8.         window.clear();
  9.         window.draw(form1);
  10.         window.display();
  11.         std::cout << form1_y << form1_x << std::endl;
  12.         Sleep(speed);
  13.        
  14.         }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement