Kode Pemrograman Level 1 Kode Pemrograman Level 2 Kode Pemrograman Level 3 Kode Pemrograman Level 4

129

B. Kode Pemrograman

1. Kode Pemrograman Level 1

stop; scLv1=0; pSc1=142; fungsi=1; benar=0; salah=0; matahari=1211; gMatahari=1; bar=515; tm=24; tm1=24; gBar=0; hpbar=0; hp=100; btpause=0; gpause=24; hp2=100; onEnterFrame = function { if fungsi==1{ if benar==1{ gotoAndPlay2; ifgBar==1{ bar-=1.40; tm--; iftm=0{ gBar=0; } } } if salah==1{ ifhpbar==1{ hp-=1.388888889; tm1--; iftm1=0{ hpbar=0; gotoAndPlay4; } if hp=0{ gotoAndPlay31; } } } 130 if btpause==1{ Pause+=5; gpause--; if Pause=300{ btpause=0; } } if bar=284{ gotoAndPlay32; } ifgMatahari==1{ matahari-= 0.1725; if matahari=140{ gMatahari=0; fungsi=0; gotoAndPlay31; } } } }

2. Kode Pemrograman Level 2

stop; fungsi=1; salah=0; benar=0; truck=280; truckmaju=24; gjarum=1; gjarum1=24; jarum=-40; jarum1=160; scLv2=0; pSc2=142; onEnterFrame = function { if fungsi==1 { if benar==1{ truck+=6; truckmaju--; if truckmaju=0{ benar=0; gotoAndPlay2; } } if salah==1{ jarum1+=0.833333333; 131 gjarum1--; if gjarum1=0{ salah=0; gotoAndPlay2; } } if truck=975{ gotoAndPlay12; } if jarum1=219{ gotoAndPlay11; } } ifgjarum==1{ jarum+= 0.018625; if jarum=35{ gjarum=0; fungsi=0; gotoAndPlay11; } } }

3. Kode Pemrograman Level 3

stop; fungsi=1; salah=0; benar=0; jembatan=45; jembatan1=-45; gjembatan=24; jtruck=1; truck1=130; gtruck=24; scLv3=0; pSc3=142; onEnterFrame = function { if fungsi==1 { if benar==1{ jembatan-=0.268; jembatan1+=0.268; gjembatan--; if gjembatan=0{ benar=0; gotoAndPlay2; } 132 } if salah==1{ truck1+=15; gotoAndPlay2; } if jtruck==1{ truck1+=0.07129; if truck1=438{ gotoAndPlay11 } } if jembatan=0{ gotoAndPlay12; } } }

4. Kode Pemrograman Level 4

stop; baktruck = 0; hidtruck = 35; hidtruckrot = 0; fungsi = 1; salah = 0; benar = 0; hitbaktruck = 24; hithidtruck = 24; scLv4=0; pSc4=142; tm1=24; hpbar=0; hp=100; matahari=1211; gMatahari=1; onEnterFrame = function { if fungsi==1 { if salah==1 { ifhpbar==1{ hp-=1.388888889; tm1--; iftm1=0{ hpbar=0; gotoAndPlay2; } if hp=0{ gotoAndPlay10; 133 } } } if benar==1{ baktruck-= 1.5; hidtruck+= 2; hidtruckrot-= 1; hitbaktruck--; hithidtruck++; if hitbaktruck=20{ benar=0; hitbaktruck=24; gotoAndPlay2; fungsi=0; } } if baktruck=-42{ gotoAndPlay11; } ifgMatahari==1{ matahari-= 0.25; if matahari=-31{ gMatahari=0; fungsi=0; gotoAndPlay10; } } } } 5. Kode Pemrograman Level 5 stop; fungsi=1; salah=0; benar=0; hidrolik=810; ghidrolik=24; scLv5=0; pSc5=143; _root.busa._visible=0; onEnterFrame = function { if fungsi==1{ if benar==1{ hidrolik-=1.5; ghidrolik--; if ghidrolik=0{ benar=0; 134 gotoAndPlay2; } } if salah==1{ hidrolik+=5; ghidrolik--; if ghidrolik=0{ salah=0; gotoAndPlay2; } } if hidrolik=465{ gotoAndPlay12; } if hidrolik=815{ gotoAndPlay13 } if hidrolik=508{ _root.busa._visible=1; } } } 135 LAMPIRAN 3 Validitas dan Reliabilitas Instrumen A. Validasi Instrumen B. Lembar Validasi Ahli Materi C. Lembar Validasi Ahli Media D. Reliabilitas Instrumen 136

A. Validasi Instrumen