VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "地球引力"
   ClientHeight    =   5355
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   6060
   LinkTopic       =   "Form1"
   Picture         =   "地球引力.frx":0000
   ScaleHeight     =   5355
   ScaleWidth      =   6060
   StartUpPosition =   3  '窗口缺省
   Begin VB.Image Image1 
      Height          =   480
      Left            =   960
      Picture         =   "地球引力.frx":F099
      Top             =   -500
      Width           =   480
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim i As Integer
Dim t As Long  '长整型
Dim j As Integer
Dim h As Integer  '记录皮球下落时的高度
Dim bottom As Integer   '描述地面的高度

Private Sub Form_Click()
 Do While h < bottom
  For i = h To bottom
     Image1.Top = i
     For t = 1 To 10000: Next t
  Next i
  h = h + 400   '降低皮球反弹的高度
  For i = bottom To h Step -1
     Image1.Top = i
     For t = 1 To 20000: Next t
  Next i
Loop
End Sub

Private Sub Form_Load()
  h = 0
  bottom = Me.Height - 1500
End Sub
