Berikut adalah listing dari game ini :
variabel :
z=0;
n=0;
speedz=7;
speedn=10;
intervalz=20;
intervaln=50;
hitz=0;
hitn=0;
score=0;
missed=0;
time=60;
menu awal :
fscommand("showmenu", false);
stop();
button Klik Untuk Bermain :
on (release) {
gotoAndStop(2);
}
balon :
on (press) {
gotoAndPlay(2);
_root.score++;
}
balon bonus :
on (press) {
gotoAndPlay(2);
_root.score+=5;
}
timer :
onClipEvent (enterFrame) {
if (_root.time == 30) {
_root.speedz = 9;
_root.intervaln = 30;
}
if (_root.time == 10) {
_root.intervalz = 10;
}
if (_root.time ==0) {
_root.gotoAndStop(3);
}
}
target :
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
this.swapDepths(_root.z+1);
if (_root._currentframe == 3) {
removeMovieClip("");
}
}
button Main Lagi :
on (release) {
gotoAndStop(2);
}
OUTPUT GAME :
OUTPUT GAME :
Tidak ada komentar:
Posting Komentar