Advertisement
allerost

code 4 wille

Jan 20th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. if(x <= 0 )
  2. {
  3. x = xstart;
  4. y = ystart;
  5. global.pointsB ++;
  6.  
  7. hspd = choose(2,3,4);
  8. vspd = choose(2,3,4);
  9.  
  10. hspeed = choose(-hspd,hspd);
  11. vspeed = choose(-vspd,vspd);
  12. }
  13.  
  14. if( x >= room_width)
  15. {
  16. x = xstart;
  17. y = ystart;
  18. global.pointsA ++;
  19.  
  20. hspd = choose(2,3,4);
  21. vspd = choose(2,3,4);
  22.  
  23. hspeed = choose(-hspd,hspd);
  24. vspeed = choose(-vspd,vspd);
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement