Advertisement
far_light

Первый модуль, 11 занятие

Jan 13th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.48 KB | None | 0 0
  1.  for (int i = 0; i < 7; i++) {
  2.             prize[i].draw(graph);
  3.  
  4.             if (prize[i].activity && prize[i].y + prize[i].image.getHeight(null) >= 470) {
  5.                 if (Math.abs(prize[i].x - x) > 75) {
  6.                     graph.drawImage(end, 300, 300, null);
  7.                     timer.stop();
  8.                     timerUpdate.stop();
  9.                     break;
  10.                 } else {
  11.                     prize[i].activity = false;
  12.                 }
  13.             }
  14.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement