Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (simpleColumn >= 1 && simpleColumn <= 8){ //setting the pieces in the correct columns
- setLayoutX((VIEWER_WIDTH/4-PIECE_SIZE) + ((simpleColumn % 9)*PIECE_SIZE/4));
- }
- if (row >= 65 && row <= 68){ //setting the pieces in the correct rows
- int simpleRow = row-64;
- if (simpleRow == 1){
- setLayoutY(centreY-PIECE_SIZE/4);
- } else if(simpleRow == 2){
- setLayoutY(centreY);
- } else if (simpleRow == 3){
- setLayoutY(centreY+PIECE_SIZE/4);
- } else {
- setLayoutY(centreY+PIECE_SIZE/2);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement