Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(Keyboard::isKeyPressed(Keyboard::Up)){
- s.move(0,-3);
- }
- if(Keyboard::isKeyPressed(Keyboard::Right)){
- s.move(3,0);
- }
- if(Keyboard::isKeyPressed(Keyboard::Down)){
- s.move(0,3);
- }
- if(Keyboard::isKeyPressed(Keyboard::Left)){
- s.move(-3,0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement