Advertisement
Guest User

Untitled

a guest
May 5th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. private int glubSize=0;
  2.  
  3.  
  4. private void initGlub() {
  5. if(direction==0)
  6. loadImage("GlubRight"+glubSize+".png");
  7. else
  8. loadImage("GlubLeft"+glubSize+".png");
  9. getImageDimensions();
  10. }
  11.  
  12.  
  13. if (mass > 90)
  14. {
  15. if (direction == 0)
  16. {
  17. glubSize=8;
  18. }
  19. else if (direction == 1)
  20. {
  21. glubSize=8;
  22. }
  23. }
  24. else if (mass > 80)
  25. {
  26. if (direction == 0)
  27. {
  28. glubSize=7;
  29. }
  30. else if (direction == 1)
  31. {
  32. glubSize=7;
  33. }
  34. }
  35. else if (mass > 70)
  36. {
  37. if (direction == 0)
  38. {
  39. glubSize=6;
  40. }
  41. else if (direction == 1)
  42. {
  43. glubSize=6;
  44. }
  45. }
  46. else if (mass > 60)
  47. {
  48. if (direction == 0)
  49. {
  50. glubSize=5;
  51. }
  52. else if (direction == 1)
  53. {
  54. glubSize=5;
  55. }
  56. }
  57. else if (mass > 50)
  58. {
  59. if (direction == 0)
  60. {
  61. glubSize=4;
  62. }
  63. else if (direction == 1)
  64. {
  65. glubSize=4;
  66. }
  67. }
  68. else if (mass > 40)
  69. {
  70. if (direction == 0)
  71. {
  72. glubSize=3;
  73. }
  74. else if (direction == 1)
  75. {
  76. glubSize=3;
  77. }
  78. }
  79. else if (mass > 30)
  80. {
  81. if (direction == 0)
  82. {
  83. glubSize=2;
  84. }
  85. else if (direction == 1)
  86. {
  87. glubSize=2;
  88. }
  89. }
  90. else if (mass > 20)
  91. {
  92. if (direction == 0)
  93. {
  94. glubSize=1;
  95. }
  96. else if (direction == 1)
  97. {
  98. glubSize=1;
  99. }
  100. }
  101. else
  102. {
  103. if (direction == 0)
  104. {
  105. glubSize=0;
  106. }
  107. else if (direction == 1)
  108. {
  109. glubSize=0;
  110. }
  111. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement