Game Puzzle
Tugas Besar Kelompok 2 PBO Java
Di ampuh oleh bpk Lilik Trihardanto,S.Si
Coding Puzzle, Class 1
/**
* Title : Class 1 Puzzle
* Deskripsi : Game Puzzle yang di tampilkan di Applet
*/
import java.awt.*;
import java.awt.*;
import java.awt.event.*;
import java.lang.Number.*;
import java.applet.*;
public class Puzzle extends Panel implements MouseListener {
private PuzzleItem item[];
private int num[];
private int elemen;private int numOfMove=0;
private int opened1Pos, opened2Pos, openedImageID;
private AudioClip clickClip, finishClip;
private Puzzle8 ep;
public Puzzle(Image image[], int seed, int row, int col,
AudioClip clickClip, AudioClip finishClip, Puzzle8 ep) {
elemen = row * col;
this.ep = ep;
this.clickClip = clickClip;
this.finishClip = finishClip;
scramble(seed, elemen);
item = new PuzzleItem[elemen];
setLayout(new GridLayout(row, col));
int ipos=0, jpos=0;
for (int i = 0; i if((i!=0) && (i % col == 0)) {...
Komentar