True:s2(2, 2) = True:s2(3, 2) = True:s2(4, 2) = True:Farg2 = "#33CC33"
Case 3:s2(2, 1) = True:s2(3, 1) = True:s2(3, 2) = True:s2(3, 3) = True:Farg2 = "#FF9900"
Case 4:s2(3, 1) = True:s2(2, 1) = True:s2(2, 2) = True:s2(2, 3) = True:Farg2 = "#666666"
Case 5:s2(3, 1) = True:s2(3, 2) = True:s2(3, 3) = True:s2(2, 2) = True:Farg2 = "#CC00CC"
Case 6:s2(2, 1) = True:s2(2, 2) = True:s2(3, 2) = True:s2(3, 3) = True:Farg2 = "#6666FF"
Case 7:s2(3, 1) = True:s2(3, 2) = True:s2(2, 2) = True:s2(2, 3) = True:Farg2 = "#33CCCC"
End Select
For i = 1 To 4
For i2 = 1 To 3
document.all("P" & cstr(((i2 - 1) * 4 + i - 1))).bgcolor = "#000000"
If s2(i, i2) = True Then
document.all("P" & cstr((i2 - 1) * 4 + i - 1)).bgcolor = Farg2
End If
Next
Next
End Sub
Function PosLevel(Lev)
Select Case Lev
Case 1: PosLevel = 1
Case 2: PosLevel = 51
Case 3: PosLevel = 81
Case 4: PosLevel = 111
Case 5: PosLevel = 141
Case 6: PosLevel = 181
Case 7: PosLevel = 221
Case 8: PosLevel = 261
Case 9: PosLevel = 301
Case 10: PosLevel = 341
End Select
End Function
¡°¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
Function VelLevel(Velo)
Select Case Velo
Case 1: VelLevel = 500
Case 2: VelLevel = 450
Case 3: VelLevel = 400
Case 4: VelLevel = 350
Case 5: VelLevel = 300
Case 6: VelLevel = 250
Case 7: VelLevel = 200
Case 8: VelLevel = 150
Case 9: VelLevel = 100
Case 10: VelLevel = 50
Case 11: VelLevel = 10
End Select
End Function
Sub ColorForm()
For i = 0 To 11:document.all("P" & cstr(i)).bgcolor = "#000000":Next
For i = 0 To 249:document.all(cstr(i)).bgcolor = "#000000":Next
End Sub
function Andar()
For i = 1 To 4
For i2 = 1 To 4
If s(i, i2) = True And Y - i2 + 1 = 1 Then Fig = 0
If Y - i2 > 0 And X + i - 1 > 0 And X + i - 1 < 11 Then
If s(i, i2) = True And n(X + i - 1, Y - i2) = True Then Fig = 0
End If
Next
Next
If Fig = 0 Then
For i = 1 To 4
For i2 = 1 To 4
If s(i, i2) = True Then n(X + i - 1, Y - i2 + 1) = True
Next
Next
Ner
Nyfig
Else
For i = 1 To 4
For i2 = 1 To 4
If s(i, i2) = True And s(i, i2 - 1) = False Then
document.all(cstr(coor(X + i - 1, Y - i2 + 1))).bgcolor = "#000000"
End If
Next
Next
End If
Y = Y - 1
For i = 1 To 4
For i2 = 1 To 4
If s(i, i2) = True Then
if not gover = true then
If ucase(document.all(cstr(coor(X + i - 1, Y - i2 + 1))).bgcolor) <> "#000000" And ucase(document.all(cstr(coor(X + i - 1, Y - i2 + 1))).bgcolor) <> Farg Then
Gameover
end if
end if
End If
If s(i, i2) = True Then
document.all(cstr(coor(X + i - 1, Y - i2 + 1))).bgcolor = Farg
End If
Next
Next
end function
Sub Gameover()
MsgBox "ÓÎÏ·½áÊø£¡", , "¶íÂÞ˹·½¿é"
window.clearInterval Timer1
GOver = true
End Sub
Sub Ner()
Score = Score + 10
document.all("Sco02").innertext = Score
For i2 = 25 To 1 Step -1
ok = 1
For i = 1 To 10
If n(i, i2) = False