Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. if (FIRST_PART) {
  2. if(OBSTACLE_LOCATION) {
  3. addObstacle(17, 43);
  4. }
  5. else {
  6. addObstacle(25, 43);
  7. addObstacle(21, 43);
  8. }
  9. addObstacle(24,61);
  10. splitInHalf();
  11. addWall();
  12. } else {
  13. addFullWall();
  14.  
  15. //green
  16. if(ApproachObstacle.colourRead){
  17. addObstacle(64, 37);
  18. addObstacle(64, 40);
  19. //addObstacle(67, 37);
  20. obstacle[35][16] = true;
  21. obstacle[35][17] = true;
  22. obstacle[35][18] = true;
  23. obstacle[35][19] = true;
  24. obstacle[35][20] = true;
  25. obstacle[35][21] = true;
  26. obstacle[35][22] = true;
  27.  
  28. obstacle[36][16] = true;
  29. obstacle[36][17] = true;
  30. obstacle[36][18] = true;
  31. obstacle[36][19] = true;
  32. obstacle[36][20] = true;
  33. obstacle[36][21] = true;
  34. obstacle[36][22] = true;
  35.  
  36. for(int i = 17; i <= 22; ++i)
  37. obstacle[37][i] = true;
  38. }
  39. else {
  40. for(int i = 16; i <= 22; ++i)
  41. obstacle[31][i] = true;
  42. }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement