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

📄 form1.frm

📁 这是一个测试反应的一款小游戏
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   8025
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   11535
   LinkTopic       =   "Form1"
   ScaleHeight     =   8025
   ScaleWidth      =   11535
   StartUpPosition =   3  '窗口缺省
   Begin VB.Timer Timer3 
      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        =   7
      Top             =   240
      Width           =   975
   End
   Begin VB.TextBox Text2 
      Height          =   375
      Left            =   7320
      TabIndex        =   6
      Top             =   240
      Width           =   855
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   4800
      TabIndex        =   3
      Top             =   240
      Width           =   855
   End
   Begin VB.CommandButton Command3 
      Caption         =   "停止"
      Height          =   255
      Left            =   1320
      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            =   2400
      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        =   9
      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        =   8
      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        =   5
      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        =   4
      Top             =   360
      Width           =   1335
   End
   Begin VB.Image Image9 
      Height          =   1215
      Left            =   9360
      Top             =   5880
      Width           =   1335
   End
   Begin VB.Image Image8 
      Height          =   1215
      Left            =   8040
      Top             =   5880
      Width           =   1335
   End
   Begin VB.Image Image7 
      Height          =   1215
      Left            =   6720
      Top             =   5880
      Width           =   1335
   End
   Begin VB.Image Image6 
      Height          =   1215
      Left            =   5280
      Top             =   5880
      Width           =   1455
   End
   Begin VB.Image Image5 
      Height          =   1215
      Left            =   3960
      Top             =   5880
      Width           =   1335
   End
   Begin VB.Image Image4 
      Height          =   1215
      Left            =   2640
      Top             =   5880
      Width           =   1335
   End
   Begin VB.Image Image3 
      Height          =   1170
      Left            =   1320
      Picture         =   "Form1.frx":0000
      Top             =   5880
      Width           =   675
   End
   Begin VB.Image Image2 
      Height          =   750
      Left            =   0
      Picture         =   "Form1.frx":13A7
      Top             =   5880
      Width           =   750
   End
   Begin VB.Image Image1 
      Height          =   765
      Left            =   2280
      Picture         =   "Form1.frx":715B
      Top             =   2640
      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

Private Sub Command1_Click()
End
End Sub

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

Private Sub Command3_Click()
Timer1.Interval = 0
s = 0
Text1.Text = ""
Command3.Enabled = False
Command2.Enabled = True
Image1.Visible = False
Timer3.Interval = 0
p = 1
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
Image8.Visible = False
Image9.Visible = False
s = 0
Text2.Text = ""
Command3.Enabled = False
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
Case 21
   Image8.Visible = True
Case 24
   Image9.Visible = True
End Select
End Sub
Private Sub Label5_Click()
 frmHigh.Show , Me
    MainPause = True
End Sub



Private Sub Timer1_Timer()
Do
For A = 1 To 5880
c = Int(Rnd * (6480 - 600 + 1)) + 600
Next A
For b = 1 To 9980
d = Int(Rnd * (10560 - 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 = "11"
Command3.Enabled = False
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 = ""
Command3.Enabled = False
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 + -