Advertisement
Guest User

Untitled

a guest
Dec 28th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if y < 0 {
  2.     vspeed = abs(vspeed)
  3. }
  4. if y > room_height {
  5.     vspeed = -abs(vspeed)
  6. }
  7. if x < 0 {
  8.     hspeed = abs(hspeed)
  9. }
  10. if x > room_width {
  11.     hspeed = -abs(hspeed)
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement