亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? winmine.cls

?? visual basic課程設計案例精編
?? CLS
?? 第 1 頁 / 共 3 頁
字號:
                    Else
                        intY = intY + 1
                        If (intXStart = intX And intYStart = intY) Then Exit Do
                    End If
                
                Else
                    
                    blnGoDown = False
                    blnGoLeft = True

                    intX = intX - 1
                    If (intXStart = intX And intYStart = intY) Then Exit Do
                
                End If
            
            ElseIf blnGoLeft Then
                
                If mbytMineStatus(intY - 1, intX) = NONE Then
                    
                    If intX = 0 Then
                        blnGoLeft = False
LFT:                    colX(intY).Add intX
                        If intY = 0 Then GoTo UP
                        intY = intY - 1
                        If (intXStart = intX And intYStart = intY) Then Exit Do
                        While mbytMineStatus(intY, intX) = NONE
                            colX(intY).Add intX
                            If intY = 0 Then GoTo UP
                            intY = intY - 1
                            If (intXStart = intX And intYStart = intY) Then Exit Do
                        Wend
                        colX(intY).Add intX
                        blnGoRight = True
                    Else
                        intX = intX - 1
                        If (intXStart = intX And intYStart = intY) Then Exit Do
                    End If
                
                Else
                    
                    blnGoLeft = False
                    blnGoUp = True

                    colX(intY).Add intX
                    intY = intY - 1
                    If (intXStart = intX And intYStart = intY) Then Exit Do
                
                End If
            
            End If
        
        End If

    Loop

    For y = 0 To mintRows - 1
        
        If colX(y).Count > 0 Then
        
           
            For x = 1 To colX(y).Count
                
                Dim intXValue As Integer
                intXValue = colX(y)(x)
                
                If intXValue < 10 Then
                    intXValue = intXValue + 48
                ElseIf intXValue >= 10 Then
                    intXValue = intXValue + 55
                End If
                
                mfrmDisplay.lstSortedX.AddItem Chr$(intXValue)
            
            Next
            
            
            For x = 0 To mfrmDisplay.lstSortedX.ListCount - 1 Step 2
            
                Dim intR1 As Integer
                Dim intC1 As Integer
                Dim intColStart As Integer
                Dim intColEnd As Integer
                Dim intDx As Integer
                Dim intWidth As Integer
                
                intR1 = y * mintButtonHeight
                
                intColStart = Asc(mfrmDisplay.lstSortedX.List(x))
                If intColStart <= 57 Then
                    intColStart = intColStart - 48
                ElseIf intColStart >= 65 Then
                    intColStart = intColStart - 55
                End If
                
                intColEnd = Asc(mfrmDisplay.lstSortedX.List(x + 1))
                If intColEnd <= 57 Then
                    intColEnd = intColEnd - 48
                ElseIf intColEnd >= 65 Then
                    intColEnd = intColEnd - 55
                End If
                
                intC1 = intColStart * mintButtonWidth
                intDx = intColEnd - intColStart + 1
                intWidth = intDx * mintButtonWidth

                mfrmDisplay.PaintPicture mfrmDisplay.imgOpenBlocks, intC1, intR1, , , 0, 0, intWidth, mintButtonHeight
        
                For i = 0 To intDx - 1
                    
                    If mbytMarked(y, intColStart + i) > NONE Then
                        
                        If mbytMarked(y, intColStart + i) = QUESTION Then
                            mfrmDisplay.PaintPicture mfrmDisplay.imgQuestion, intC1 + i * mintButtonWidth, intR1
                        Else
                            mfrmDisplay.PaintPicture mfrmDisplay.imgFlag, intC1 + i * mintButtonWidth, intR1
                        End If
                    
                    ElseIf mbytMineStatus(y, intColStart + i) > NONE Then
                        
                        mfrmDisplay.CurrentX = intC1 + i * mintButtonWidth
                        mfrmDisplay.CurrentY = intR1
                        
                        If mbytMineStatus(y, intColStart + i) >= BEEN Then
                            mfrmDisplay.ForeColor = QBColor(mbytMineStatus(y, intColStart + i) - BEEN)
                            mfrmDisplay.Print mbytMineStatus(y, intColStart + i) - BEEN
                        ElseIf mbytMineStatus(y, intColStart + i) = MINE Then
                             mfrmDisplay.PaintPicture mfrmDisplay.imgButton, intC1 + i * mintButtonWidth, intR1
                        Else
                            mfrmDisplay.ForeColor = QBColor(mbytMineStatus(y, intColStart + i))
                            mfrmDisplay.Print mbytMineStatus(y, intColStart + i)
                            mbytMineStatus(y, intColStart + i) = mbytMineStatus(y, intColStart + i) + BEEN
                        End If
                    
                    End If
                    
                Next
                
            Next
        
            ' 清空收集
            mfrmDisplay.lstSortedX.Clear
            
        End If
        
    Next

End Sub

Private Sub ResizeDisplay()
    
    ' 設置外框邊界尺寸
    mfrmDisplay.ScaleMode = 1
    mfrmDisplay.Width = mfrmDisplay.Width - mfrmDisplay.ScaleWidth + mintCols * mintButtonWidth * Screen.TwipsPerPixelX
    mfrmDisplay.Height = mfrmDisplay.Height - mfrmDisplay.ScaleHeight + mintRows * mintButtonHeight * Screen.TwipsPerPixelY + mfrmDisplay.lblMinesLeft.Height
    
    ' 設置標簽尺寸
    mfrmDisplay.lblMinesLeft.Left = 0
    mfrmDisplay.lblMinesLeft.Top = mfrmDisplay.ScaleHeight - mfrmDisplay.lblMinesLeft.Height
    mfrmDisplay.lblMinesLeft.Width = mfrmDisplay.ScaleWidth
    mfrmDisplay.lblMinesLeft = "Mines Left : " & mbytNumMines
    
    mfrmDisplay.ScaleMode = 3

End Sub

Public Sub TrackHitTest(intButton As Integer, intX As Single, intY As Single)

    Dim blnLeftDown As Boolean
    blnLeftDown = (intButton And LEFT_BUTTON) > 0
    
    ' 如果鼠標左健點擊
    If blnLeftDown Then
        
        ' 如果當前沒有執行鼠標點擊,則取消
        If Not mblnHitTestBegun Then Exit Sub

        ' 通過鼠標坐標確定柵格坐標
        intX = Int(intX / mintButtonWidth)
        intY = Int(intY / mintButtonHeight)

        ' 如果鼠標點擊在游戲邊界外邊,則取消
        If intX >= mintCols Or intY >= mintRows Or intX < 0 Or intY < 0 Then
            mfrmDisplay.imgQsPressed.Visible = False
            mfrmDisplay.imgPressed.Visible = False
            Exit Sub
        End If

        ' 如果當前的方格已被標注,則取消
        If mbytMarked(intY, intX) >= FLAGGED Then
            mfrmDisplay.imgQsPressed.Visible = False
            mfrmDisplay.imgPressed.Visible = False
            Exit Sub
        End If

        Dim intRowOld As Integer
        Dim intColOld As Integer
        
        ' 存儲前面柵格指針的位置
        intRowOld = mintRow
        intColOld = mintCol

        ' 計算當前鼠標指針的位置
        mintCol = intX * mintButtonWidth
        mintRow = intY * mintButtonHeight

        '如果當前的柵格坐標發生變化,顯示方格被標注
        If intRowOld = mintRow And intColOld = mintCol Then
            If mfrmDisplay.imgPressed.Visible Or mfrmDisplay.imgQsPressed.Visible Then
                Exit Sub
            End If
        End If
        
        ' 如果當前的方格已被打開,則取消
        If mbytMineStatus(intY, intX) >= BEEN Then
            mfrmDisplay.imgPressed.Visible = False
            mfrmDisplay.imgQsPressed.Visible = False
            Exit Sub
        End If
        
        If mbytMarked(intY, intX) = QUESTION Then
            mfrmDisplay.imgPressed.Visible = False
            mfrmDisplay.imgQsPressed.Visible = False
            mfrmDisplay.imgQsPressed.Left = mintCol
            mfrmDisplay.imgQsPressed.Top = mintRow
            mfrmDisplay.imgQsPressed.Visible = True
        Else
            mfrmDisplay.imgQsPressed.Visible = False
            mfrmDisplay.imgPressed.Visible = False
            mfrmDisplay.imgPressed.Left = mintCol
            mfrmDisplay.imgPressed.Top = mintRow
            mfrmDisplay.imgPressed.Visible = True
        End If
    
    End If
    
End Sub

Private Sub Class_Initialize()

    mbytNumMines = 10
    mbytCorrectHits = 0
    mbytTotalHits = 0
    
    mintRows = 8
    mintCols = 8
    mintRow = -1
    mintCol = -1
    
    mblnNewGame = False
    mblnHitTestBegun = False
    Set mfrmDisplay = Nothing
    
    ' 計算隨機地雷的位置
    InitializeMineField
    
End Sub

Public Sub SetMineFieldDimension(intRows As Integer, intCols As Integer, bytMines As Byte, blnLevelCustom As Boolean)
    
    mintRows = intRows
    If intRows < MIN_ROWS Then mintRows = MIN_ROWS
    If intRows > MAX_ROWS Then mintRows = MAX_ROWS
        
    mintCols = intCols
    If intCols < MIN_COLS Then mintCols = MIN_COLS
    If intCols > MAX_COLS Then mintCols = MAX_COLS

    mbytNumMines = bytMines
    If blnLevelCustom Then
        Dim intMines As Integer
        intMines = (mintRows * mintCols) \ 5
        If bytMines < intMines Then
            mbytNumMines = intMines
            bytMines = intMines
        ElseIf bytMines > (intMines * 4) \ 3 Then
            mbytNumMines = (intMines * 4) \ 3
            bytMines = mbytNumMines
        End If
    End If
    
    If bytMines < MIN_MINES Then mbytNumMines = MIN_MINES
    If bytMines > MAX_MINES Then mbytNumMines = MAX_MINES
    
    ' 清空現在的顯示,重新開始游戲
    mfrmDisplay.Cls
    
    ' 調整游戲邊界尺寸
    ResizeDisplay
    
End Sub

Private Sub Class_Terminate()
    
    Erase mbytMineStatus
    Erase mbytMarked
    Erase mbytMineLocations
    
    Dim i As Integer            ' 循環計數
    
    For i = 1 To mcolWrongLocations.Count
        mcolWrongLocations.Remove 1
    Next

End Sub

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美综合一区二区三区| www.亚洲激情.com| 日韩成人免费电影| 成人短视频下载| 亚洲成人免费视频| 精品影视av免费| 欧美系列在线观看| 色综合天天综合狠狠| 久久久久亚洲蜜桃| 亚洲妇熟xx妇色黄| 国产精品2024| 欧美伊人精品成人久久综合97 | 岛国精品在线观看| 一本一本大道香蕉久在线精品| 欧美人狂配大交3d怪物一区| wwwwxxxxx欧美| 日韩精品免费视频人成| 99久久er热在这里只有精品66| 日韩欧美国产系列| 亚洲一区二区三区在线| 国产乱理伦片在线观看夜一区| 欧美一级欧美三级在线观看| 欧美国产日韩一二三区| 欧美激情一区二区在线| 国产一区欧美日韩| 欧美精品国产精品| 午夜免费欧美电影| 91在线播放网址| 久久久电影一区二区三区| 国内精品国产成人国产三级粉色| 色狠狠一区二区三区香蕉| 最新中文字幕一区二区三区 | 久久在线观看免费| 经典一区二区三区| 欧美疯狂做受xxxx富婆| 丝袜脚交一区二区| 欧美视频日韩视频在线观看| 国产精品国产馆在线真实露脸| 国产91精品精华液一区二区三区| 日韩丝袜美女视频| 亚洲视频资源在线| 欧美在线小视频| 亚洲激情综合网| 欧美美女一区二区在线观看| 一二三四社区欧美黄| 99久久精品免费看| 亚洲午夜在线观看视频在线| 99国产精品久久久久久久久久| 欧美日韩亚洲综合| 精品一区在线看| 久久蜜桃一区二区| 色综合一区二区| 亚洲三级小视频| 不卡一卡二卡三乱码免费网站| 一区二区三国产精华液| 日本国产一区二区| 亚洲永久精品大片| 精品欧美黑人一区二区三区| 精品一区二区三区的国产在线播放| 久久久久久久精| 国产.欧美.日韩| 国产欧美视频一区二区三区| 色综合咪咪久久| 一区二区日韩电影| 久久一日本道色综合| 高清不卡一区二区在线| 久久日韩精品一区二区五区| 99国产精品久久| 亚洲大片一区二区三区| 久久综合久久综合亚洲| 久久99精品视频| 欧美国产精品一区二区三区| 97久久超碰国产精品电影| 日本欧美加勒比视频| 2022国产精品视频| 日韩av不卡在线观看| 国产精品视频你懂的| 欧美在线视频你懂得| 国产一区不卡精品| 亚洲男女一区二区三区| 欧美日韩免费观看一区三区| 国产一区二区三区四| 亚洲视频精选在线| 国产天堂亚洲国产碰碰| 色屁屁一区二区| 国产高清在线精品| 亚洲成人精品影院| 国产拍揄自揄精品视频麻豆| 欧美精品色一区二区三区| 国产成人综合视频| 精品一区二区三区久久久| 亚洲午夜在线电影| 日韩限制级电影在线观看| 在线日韩av片| 国产一区二区调教| 91.麻豆视频| 91麻豆123| 国模无码大尺度一区二区三区 | 成人激情文学综合网| 无码av中文一区二区三区桃花岛| 亚洲成年人影院| 日本一区二区成人在线| 777奇米四色成人影色区| 一本久久精品一区二区| 韩国av一区二区三区| 午夜精品一区在线观看| 国产网站一区二区| 欧美成人video| 欧美无乱码久久久免费午夜一区| 99视频一区二区| 国产二区国产一区在线观看| 亚洲综合色视频| 一区二区三区av电影| 国产精品视频九色porn| 国产精品美女久久久久aⅴ国产馆| 717成人午夜免费福利电影| 99久久精品情趣| 91丝袜美腿高跟国产极品老师 | 丰满亚洲少妇av| 精品中文av资源站在线观看| 国内精品伊人久久久久av影院| 亚洲第一狼人社区| 奇米影视在线99精品| 午夜精品成人在线| 日韩毛片精品高清免费| 亚洲免费在线电影| 亚洲天堂av一区| 亚洲五月六月丁香激情| 亚洲一区二区三区三| 午夜久久久久久| 日韩精品久久理论片| 亚洲国产精品自拍| 午夜精品久久久久久久久| 亚洲一级二级三级| 久久99国产精品尤物| 美女视频网站黄色亚洲| 国产成人自拍在线| 成人app软件下载大全免费| 91欧美一区二区| 在线一区二区三区四区| 91久久精品午夜一区二区| 538在线一区二区精品国产| 欧美精品久久99| 国产欧美视频一区二区三区| 国产欧美日韩一区二区三区在线观看| 在线视频你懂得一区| 日韩亚洲欧美成人一区| 久久一区二区三区四区| 亚洲精品成a人| 日韩福利视频网| 国产a区久久久| 色婷婷综合久色| 欧美一区二区三区思思人| 国产精品网站在线观看| 欧美激情一区在线观看| 国产精品嫩草影院av蜜臀| 亚洲激情在线播放| 全部av―极品视觉盛宴亚洲| 国产乱码精品一区二区三区五月婷| 丁香另类激情小说| 欧美在线不卡视频| 国产女人18水真多18精品一级做| 中文字幕中文字幕中文字幕亚洲无线| 日韩电影在线一区二区三区| 国产综合久久久久影院| 91麻豆精品视频| 欧美一区二区三区在线观看视频| www激情久久| 奇米精品一区二区三区在线观看| 国产老肥熟一区二区三区| 欧美乱熟臀69xxxxxx| 国产人成一区二区三区影院| 日本不卡1234视频| jiyouzz国产精品久久| 成人黄色软件下载| 日韩精品最新网址| 亚洲精选在线视频| 99久久精品国产精品久久| 亚洲国产视频网站| 国产一区二区久久| 波多野结衣中文字幕一区| 欧美日韩国产另类不卡| 国产精品―色哟哟| 日韩精品一二三| 91视频91自| 欧美人伦禁忌dvd放荡欲情| 国产精品人妖ts系列视频| 蜜臀av亚洲一区中文字幕| 欧美在线免费观看亚洲| 国产精品无遮挡| 国产精品1024| 日韩小视频在线观看专区| 午夜视频一区在线观看| 97久久精品人人做人人爽| 日韩免费电影一区| 免费在线观看一区二区三区| 91免费国产在线| 亚洲欧美日韩一区| 粉嫩久久99精品久久久久久夜| 国产三级精品三级|