Advertisement
hwchugh

BIG BOY PLAY TOY

Nov 30th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. public void act()
  2. {
  3. // Add your action code here.
  4. int x1 = (int)(Math.random() * 600 + 1);
  5. int y1 = (int)(Math.random() * 400 + 1);
  6. int z1 = (int)(Math.random() * 500 + 1);
  7. //TEAM ONE BAY-BEE
  8. if (z1 > 498)
  9. {
  10. Dinosaur d6 = new Dinosaur();
  11. addObject(d6, x1, y1);
  12. }
  13. }
  14.  
  15. public void act()
  16. {
  17. // Add your action code here.
  18. int x = (int)(Math.random() * 50 + 1);
  19. int y = (int)(Math.random() * 30 + 1);
  20. move(x);
  21. move (-y);
  22. turn(y);
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement