Advertisement
Ahmed_Negm

Untitled

Nov 1st, 2022
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. if(Keyboard::isKeyPressed(Keyboard::Up)){
  2.                     s.move(0,-3);
  3.                 }
  4.                 if(Keyboard::isKeyPressed(Keyboard::Right)){
  5.                     s.move(3,0);
  6.                 }
  7.                 if(Keyboard::isKeyPressed(Keyboard::Down)){
  8.                     s.move(0,3);
  9.                 }
  10.                 if(Keyboard::isKeyPressed(Keyboard::Left)){
  11.                     s.move(-3,0);
  12.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement