用VB6寫的撲克牌小遊戲(4支刀)
本帖最後由 rr09192084 於 2010-6-1 02:43 PM 編輯用VB6寫的撲克牌小遊戲(4支刀)Dim colors(8)As Variant, points(8) As Variant
Dim mysum(2)As Variant, gsum(2) As Variant
Dim poker_issame(5) As Boolean
Dim win As Integer
Private Sub Form_Load()
Dim i As Integer Command2.Visible = False For i = 0 To 7 Picture1(i).BorderStyle = 0 Picture1(i).DragMode = 1 Picture1(i).Visible = False Next i For i = 0 To 3 Label1(i).Visible = False Label2(i).Visible = False Next i Label5.Visible = FalseEnd Sub
Private Sub Command1_Click() Dim i As Integer Label5.Visible = False For i = 0 To 3 Label1(i).Visible = True Label2(i).Visible = True Next i Command1.Visible = False Command2.Visible = True Label2(2).Caption = "" Label2(3).Caption = "" Call showPoker Call calc_poker(0, mysum(), Label2(0), Label2(1))
End Sub
Private Sub Command2_Click()
Command1.Visible = TrueCommand2.Visible = Falsewin = 0Label5.Visible = TrueLabel5.Caption = ""Dim i As IntegerFor i = 8 To 5 Step -1 Picture1(i - 1).Picture = LoadPicture(App.Path & "\Poker\" & colors(i) & "-" & points(i) & ".jpg") Call wait(0.05)Next iCall calc_poker(4, gsum(), Label2(2), Label2(3))If gsum(0) >...<div class='locked'><em>瀏覽完整內容,請先 <a href='member.php?mod=register'>註冊</a> 或 <a href='javascript:;' onclick="lsSubmit()">登入會員</a></em></div><div></div> 感謝大大無私分享!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 感恩 謝大大無私分享 多謝大大 的愛心與分享 感謝大大您的分享啦 收下來做參考囉 感恩<br><br><br><br><br><div></div> 非常感謝你的分享~~~~ 謝大大無私分享
收下來做參考囉 我不行下載 好失望 感謝分享
謝謝提供範例 感謝大大分享
我也來試試看<br><br><br><br><br><div></div> 謝謝大大 感恩喔!!!!!!!!!!!!!!! 感謝大大您的分享啦 收下來做參考囉 感恩 回復 1# rr09192084
謝謝大大的分享