⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 zong.frm

📁 这是一个测试反应的一款小游戏
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   8595
   ClientLeft      =   165
   ClientTop       =   450
   ClientWidth     =   11880
   LinkTopic       =   "Form1"
   ScaleHeight     =   8595
   ScaleWidth      =   11880
   StartUpPosition =   3  '窗口缺省
   Begin VB.Timer Timer3 
      Interval        =   1000
      Left            =   8640
      Top             =   840
   End
   Begin VB.Timer Timer2 
      Left            =   7680
      Top             =   840
   End
   Begin VB.Timer Timer1 
      Left            =   6720
      Top             =   840
   End
   Begin VB.TextBox Text3 
      Height          =   375
      Left            =   9480
      TabIndex        =   6
      Top             =   240
      Width           =   975
   End
   Begin VB.TextBox Text2 
      Height          =   375
      Left            =   7320
      TabIndex        =   5
      Top             =   240
      Width           =   855
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   4800
      TabIndex        =   2
      Top             =   240
      Width           =   855
   End
   Begin VB.CommandButton Command2 
      Caption         =   "开始"
      Height          =   255
      Left            =   120
      TabIndex        =   1
      Top             =   240
      Width           =   975
   End
   Begin VB.CommandButton Command1 
      Caption         =   "退出"
      Height          =   255
      Left            =   1560
      TabIndex        =   0
      Top             =   240
      Width           =   975
   End
   Begin VB.Label Label5 
      Alignment       =   2  'Center
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "排名榜"
      Height          =   180
      Left            =   9630
      TabIndex        =   8
      Top             =   840
      Width           =   555
   End
   Begin VB.Label Label4 
      Caption         =   "时 间:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   8760
      TabIndex        =   7
      Top             =   360
      Width           =   855
   End
   Begin VB.Label Label2 
      Caption         =   "最高次数:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   6240
      TabIndex        =   4
      Top             =   360
      Width           =   1335
   End
   Begin VB.Label Label1 
      Caption         =   "点击次数:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   3720
      TabIndex        =   3
      Top             =   360
      Width           =   1335
   End
   Begin VB.Image Image7 
      Height          =   2700
      Left            =   9480
      Picture         =   "zong.frx":0000
      Top             =   6240
      Width           =   1965
   End
   Begin VB.Image Image6 
      Height          =   2700
      Left            =   7560
      Picture         =   "zong.frx":1E93
      Top             =   6240
      Width           =   1965
   End
   Begin VB.Image Image5 
      Height          =   2700
      Left            =   5640
      Picture         =   "zong.frx":3B47
      Top             =   6240
      Width           =   1965
   End
   Begin VB.Image Image4 
      Height          =   2700
      Left            =   3720
      Picture         =   "zong.frx":5C64
      Top             =   6240
      Width           =   1965
   End
   Begin VB.Image Image3 
      Height          =   2700
      Left            =   1920
      Picture         =   "zong.frx":7AB0
      Top             =   6240
      Width           =   1965
   End
   Begin VB.Image Image2 
      Height          =   2700
      Left            =   0
      Picture         =   "zong.frx":9796
      Top             =   6240
      Width           =   1965
   End
   Begin VB.Image Image1 
      Height          =   765
      Left            =   4440
      Picture         =   "zong.frx":BA7E
      Top             =   2880
      Width           =   930
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim s, p As Integer
Dim sname As Single

Private Sub Command1_Click()
End
End Sub

Private Sub Command2_Click()
Timer3.Interval = 1000
s = 1000
p = 0
Timer1.Interval = 1000
Command2.Enabled = False
Image1.Visible = True
Image2.Visible = False
Image3.Visible = False
Image4.Visible = False
Image5.Visible = False
Image6.Visible = False
Image7.Visible = False
End Sub



Private Sub Form_Load()
Timer1.Interval = 0
Timer3.Interval = 0
Image2.Visible = False
Image3.Visible = False
Image4.Visible = False
Image5.Visible = False
Image6.Visible = False
Image7.Visible = False
s = 0
Text2.Text = ""
Command2.Enabled = True
Image1.Visible = False
End Sub

Private Sub Image1_Click()
t = Val(Text1.Text) + 1
s = s - 30
Timer1.Interval = s
q = Val(Text2.Text)
If t > q Then q = t
Text1.Text = t
Text2.Text = q
Select Case t
Case 3
   Image2.Visible = True
Case 6
   Image3.Visible = True
Case 9
   Image4.Visible = True
Case 12
   Image5.Visible = True
Case 15
   Image6.Visible = True
Case 18
   Image7.Visible = True
   frmLogin.Show
   Image1.Visible = False
   End Select
    If Text1.Text = "18" Then
   Timer3.Interval = 0
   End If
End Sub
Private Sub Label5_Click()
frmHigh.Show
End Sub

Private Sub Timer1_Timer()
Do
For a = 1 To 500
c = Int(Rnd * (5000 - 600 + 1)) + 600
Next a
For b = 1 To 500
d = Int(Rnd * (10000 - 580 + 1)) + 580
Next b
Image1.Top = c
Image1.Left = d
Loop While 1 = 2
End Sub

Private Sub Timer2_Timer()
Timer1.Interval = 0
s = 0
Text1.Text = ""
Command2.Enabled = True
Image1.Visible = False
End Sub

Private Sub Timer3_Timer()
Do
p = p + 1
Text3.Text = Val(p)
If p = 0 Then
Timer1.Interval = 0
s = 0
Text1.Text = ""
Command2.Enabled = True
Image1.Visible = False
Timer3.Interval = 0
End If
Loop While 1 = 2
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -