Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Cycle for updating and game logic
- for (int i = 0; i < 7; i++) {
- prizes[i].draw(graph);
- if (prizes[i].isActivity && prizes[i].y + prizes[i].image.getHeight(null) >= 470) {
- if (Math.abs(prizes[i].x - x) > 75) {
- graph.drawImage(end, 300, 300, null);
- timer.stop();
- timerUpdate.stop();
- break;
- } else {
- prizes[i].isActivity = false;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement