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

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

?? frmlander.frm

?? 利用Visual Basic開發飛船著陸游戲 源代碼
?? FRM
字號:
VERSION 5.00
Begin VB.Form frmlander 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Lander!"
   ClientHeight    =   8745
   ClientLeft      =   45
   ClientTop       =   360
   ClientWidth     =   7125
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   583
   ScaleMode       =   3  'Pixel
   ScaleWidth      =   475
   StartUpPosition =   1  'CenterOwner
   Begin VB.TextBox txtheight 
      Height          =   375
      Left            =   5280
      Locked          =   -1  'True
      TabIndex        =   8
      Text            =   "500.0"
      Top             =   3000
      Width           =   1695
   End
   Begin VB.TextBox txtvspeed 
      Height          =   375
      Left            =   5280
      Locked          =   -1  'True
      TabIndex        =   7
      Text            =   "0.0"
      Top             =   2040
      Width           =   1695
   End
   Begin VB.TextBox txtfuel 
      Height          =   375
      Left            =   5280
      Locked          =   -1  'True
      TabIndex        =   4
      Text            =   "1000.0"
      Top             =   1080
      Width           =   1695
   End
   Begin VB.CommandButton cmdgo 
      Caption         =   "Start"
      Default         =   -1  'True
      Height          =   495
      Left            =   5280
      TabIndex        =   3
      Top             =   120
      Width           =   1695
   End
   Begin VB.PictureBox picsmash 
      AutoRedraw      =   -1  'True
      BorderStyle     =   0  'None
      Height          =   480
      Left            =   5400
      Picture         =   "frmlander.frx":0000
      ScaleHeight     =   32
      ScaleMode       =   3  'Pixel
      ScaleWidth      =   32
      TabIndex        =   2
      Top             =   6960
      Visible         =   0   'False
      Width           =   480
   End
   Begin VB.PictureBox picEarth 
      BackColor       =   &H00000000&
      BorderStyle     =   0  'None
      Height          =   8520
      Left            =   120
      ScaleHeight     =   568
      ScaleMode       =   3  'Pixel
      ScaleWidth      =   336
      TabIndex        =   1
      Top             =   120
      Width           =   5040
   End
   Begin VB.Timer tmrgravity 
      Enabled         =   0   'False
      Interval        =   1
      Left            =   5400
      Top             =   5760
   End
   Begin VB.PictureBox piclander 
      AutoRedraw      =   -1  'True
      BorderStyle     =   0  'None
      Height          =   480
      Left            =   5400
      Picture         =   "frmlander.frx":0842
      ScaleHeight     =   32
      ScaleMode       =   3  'Pixel
      ScaleWidth      =   32
      TabIndex        =   0
      Top             =   6360
      Visible         =   0   'False
      Width           =   480
   End
   Begin VB.Label lblkeys 
      Caption         =   "Use down arrow for thrusters!"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   615
      Left            =   5280
      TabIndex        =   14
      Top             =   8040
      Width           =   1815
      WordWrap        =   -1  'True
   End
   Begin VB.Label lblinfo1 
      AutoSize        =   -1  'True
      Caption         =   "For more demonstration Visual Basic Projects, please visit:"
      Height          =   615
      Left            =   5280
      TabIndex        =   13
      Top             =   3480
      Width           =   1800
      WordWrap        =   -1  'True
   End
   Begin VB.Label lblurl 
      AutoSize        =   -1  'True
      Caption         =   "http://www.vb-world.net"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   -1  'True
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   195
      Left            =   5280
      TabIndex        =   12
      Top             =   4080
      Width           =   1740
   End
   Begin VB.Label lblemail 
      AutoSize        =   -1  'True
      Caption         =   "john@vb-world.net"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   -1  'True
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   195
      Left            =   5280
      TabIndex        =   11
      Top             =   4680
      Width           =   1335
   End
   Begin VB.Label lblinfo2 
      AutoSize        =   -1  'True
      Caption         =   "To contact us, please send email to:"
      Height          =   390
      Left            =   5280
      TabIndex        =   10
      Top             =   4320
      Width           =   1725
      WordWrap        =   -1  'True
   End
   Begin VB.Label lblheight 
      AutoSize        =   -1  'True
      Caption         =   "Height:"
      Height          =   195
      Left            =   5280
      TabIndex        =   9
      Top             =   2640
      Width           =   510
   End
   Begin VB.Label lblvspeed 
      AutoSize        =   -1  'True
      Caption         =   "Vertical Speed:"
      Height          =   195
      Left            =   5280
      TabIndex        =   6
      Top             =   1680
      Width           =   1080
   End
   Begin VB.Label lblfuel 
      AutoSize        =   -1  'True
      Caption         =   "Fuel:"
      Height          =   195
      Left            =   5280
      TabIndex        =   5
      Top             =   720
      Width           =   345
   End
End
Attribute VB_Name = "frmlander"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
'API Declares
Private Declare Function GetTickCount Lib "kernel32" () As Long

Private Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
Private Declare Function SetPixelV Lib "gdi32" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal crColor As Long) As Long

Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
Private Const VK_DOWN = &H28

' Vertical speed of the craft
Private vSpeed As Double
' The y coordinate of the craft
Private LandY As Double
' The amount of fuel left
Private Fuel As Double

Private Sub cmdgo_Click()
tmrgravity.Enabled = True
cmdgo.Enabled = False
End Sub

Private Sub Form_Load()
' Set initial values for fuel and vertical speed
Fuel = 700
vSpeed = 0
LandY = 0
txtvspeed.Text = Format(vSpeed, "0.0")
txtfuel.Text = Format(Fuel, "0.0")
txtheight.Text = Format(picEarth.ScaleHeight - piclander.ScaleHeight - 30 - LandY, "0.0")

lblemail = email
lblurl = URL

Dim instructions As String
instructions = "Welcome to Lander!" & vbNewLine
instructions = instructions & "When you start, space will be drawn, and you will start to fall."
instructions = instructions & "Press the down arrow to apply thrusters!" & vbNewLine
instructions = instructions & "You must land at less than 2 to prevent crashing!" & vbNewLine
instructions = instructions & "Press the Start button to start!"
MsgBox instructions
End Sub

Private Sub lblemail_Click()
sendemail
End Sub

Private Sub lblurl_Click()
gotoweb
End Sub

Private Sub tmrgravity_Timer()
Static curtime As Long
Dim timenow As Long
Dim timediff As Long

' curtime=0 if this is the first time that the event has been raised
If curtime = 0 Then
  ' Draw the earth
  picEarth.Line (0, picEarth.ScaleHeight - 30)-(picEarth.ScaleWidth, picEarth.ScaleHeight), vbWhite, BF
  
  Randomize Timer
  Dim starx As Long, stary As Long
  For starx = 0 To picEarth.ScaleWidth
    For stary = 0 To picEarth.ScaleHeight - 30
      If Rnd * 1000 < 5 Then
        SetPixelV picEarth.hdc, starx, stary, vbYellow
      End If
    Next
  Next
    
  timenow = GetTickCount
  curtime = timenow
    
Else
  ' GetTickCount returns number of milliseconds since windows was started
  ' This allows us to guage the length of time since this event was last raised,
  ' allowing us to calculate accelerations
  timenow = GetTickCount
  
  ' If it isn't the first time, put back the previous background
  BitBlt picEarth.hdc, 150, LandY, piclander.ScaleWidth, piclander.ScaleHeight, piclander.hdc, 0, 0, vbSrcInvert
End If

' Get the number of milliseconds since the event was last called
timediff = timenow - curtime

' Calculate new vertical speed based on g ( currently using the value for Earth )
' On Earth, g=10
' On Moon, g=1.7
vSpeed = vSpeed - ((timediff / 1000) * 10)

' Find out if the down key is pressed, so if thrust should be applied
' Also check that there is fuel remaining
If GetAsyncKeyState(VK_DOWN) <> 0 Then
  If Fuel > 0 Then
    ' Apply thrust: 15 is the acceleration produced
    vSpeed = vSpeed + ((timediff / 1000) * 15)
    
    Fuel = Fuel - ((timediff / 1000) * 150)
    
    ' Check that fuel does not go below 0
    If Fuel < 0 Then Fuel = 0
  Else
    Beep
  End If
End If

LandY = LandY - vSpeed

' Update text boxes
txtvspeed.Text = Format(vSpeed, "0.0")
txtfuel.Text = Format(Fuel, "0.0")
txtheight.Text = Format(picEarth.ScaleHeight - piclander.ScaleHeight - 30 - LandY, "0.0")

' Update the 'last called time'
curtime = timenow

' If it has touched down...
If LandY >= picEarth.ScaleHeight - 30 - piclander.ScaleHeight Then
  
  ' Make sure that it is on the surface
  LandY = picEarth.ScaleHeight - 30 - piclander.ScaleHeight
  txtheight.Text = Format(picEarth.ScaleHeight - piclander.ScaleHeight - 30 - LandY, "0.0")
  
  ' Stop the timer and disable the pause button...the game is over!
  tmrgravity.Enabled = False
  
  ' Figure out if it was a safe landing or not, and paint the appropriate craft
  If vSpeed > -2 Then
    ' If it was safe, then the craft remains intact
    BitBlt picEarth.hdc, 150, LandY, piclander.ScaleWidth, piclander.ScaleHeight, piclander.hdc, 0, 0, vbSrcInvert
    MsgBox "Congratulations! You have landed successfully!"
  Else
    ' If it was moving too fast, it blows up!
    BitBlt picEarth.hdc, 150, LandY, piclander.ScaleWidth, piclander.ScaleHeight, picsmash.hdc, 0, 0, vbSrcInvert
    MsgBox "Smash! Oooops!"
  End If

Else

  ' paint the craft into its new position.
  BitBlt picEarth.hdc, 150, LandY, piclander.ScaleWidth, piclander.ScaleHeight, piclander.hdc, 0, 0, vbSrcInvert

End If
End Sub

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 2020国产精品自拍| 亚洲国产精品一区二区www| 99久久国产综合精品女不卡| 国产精品久久久久久久久免费樱桃 | 亚洲视频在线一区二区| 欧美性感一类影片在线播放| 亚洲成人手机在线| 欧美大片一区二区三区| 国产美女在线精品| 亚洲欧洲制服丝袜| 日韩欧美亚洲一区二区| 制服丝袜中文字幕亚洲| 国产黄色精品网站| 亚洲成av人片在线| 五月婷婷久久丁香| 国产精品国产三级国产普通话三级 | 久久久久久电影| 色哟哟国产精品| 日韩影视精彩在线| 亚洲欧洲精品一区二区三区不卡| 欧美丰满一区二区免费视频| 97久久精品人人爽人人爽蜜臀 | 欧美精品免费视频| 日韩欧美精品三级| 久久人人爽爽爽人久久久| 国产欧美一区在线| 日韩一级大片在线| 欧美日韩免费高清一区色橹橹| 国产精品夜夜爽| 美女一区二区久久| 亚洲精品国产一区二区精华液| 欧美一区二区精品| 欧美精三区欧美精三区| 日韩免费观看高清完整版在线观看| www国产亚洲精品久久麻豆| 中文字幕精品综合| 国产亚洲欧美日韩日本| 久久久久久久综合| 亚洲一区二区三区四区在线免费观看| 欧美一区二区免费观在线| 国产日产亚洲精品系列| 一区二区三区成人在线视频| **欧美大码日韩| 久久电影网站中文字幕| 三级久久三级久久| 国产成人av电影| 欧美精品粉嫩高潮一区二区| 欧美tickle裸体挠脚心vk| 欧美精品一区男女天堂| 欧美日韩亚洲综合| 91麻豆免费看| 91色.com| 久久精品欧美日韩精品| 日本怡春院一区二区| 奇米影视一区二区三区小说| 色综合久久久久| 成人午夜av影视| 精品国产免费人成电影在线观看四季| 国产日韩欧美电影| 老汉av免费一区二区三区| 91成人免费在线视频| 在线观看亚洲精品视频| 欧美亚洲自拍偷拍| 久久精品一区二区三区不卡牛牛| 午夜亚洲国产au精品一区二区| 成人av在线资源网站| 色婷婷一区二区| 国产精品无圣光一区二区| 蜜桃传媒麻豆第一区在线观看| 色94色欧美sute亚洲线路二| 亚洲婷婷综合色高清在线| 国产成人在线免费观看| 久久夜色精品一区| 美女一区二区在线观看| 欧美成人a∨高清免费观看| 日韩高清欧美激情| 欧美日韩久久一区| 免费观看30秒视频久久| 在线播放91灌醉迷j高跟美女 | 东方欧美亚洲色图在线| 欧美不卡激情三级在线观看| 午夜国产精品一区| 欧美剧情电影在线观看完整版免费励志电影| 亚洲视频一二区| 色婷婷激情一区二区三区| 亚洲欧美日韩中文播放| 欧美在线观看视频一区二区 | 欧美日韩午夜精品| 丝袜美腿亚洲色图| 777久久久精品| 麻豆91精品视频| 亚洲精品在线一区二区| 国产aⅴ综合色| 中文字幕一区二区三区乱码在线| 91亚洲男人天堂| 亚洲国产精品久久不卡毛片| 91精品国产综合久久久蜜臀图片| 日本sm残虐另类| 久久综合色播五月| 成人高清视频在线| 亚洲美女偷拍久久| 88在线观看91蜜桃国自产| 麻豆成人久久精品二区三区小说| www久久精品| 成人黄色免费短视频| 亚洲国产日韩在线一区模特 | 国产午夜精品福利| 99国产精品国产精品久久| 亚洲超丰满肉感bbw| 久久精品亚洲一区二区三区浴池| av一区二区三区| 精品国产电影一区二区| 国产精品亚洲一区二区三区妖精 | 中文字幕乱码日本亚洲一区二区| 日本精品一级二级| 久久精品国产免费| 亚洲人成精品久久久久| 欧美一区二区三区小说| 成人h动漫精品一区二区| 亚洲第一精品在线| 中文字幕一区免费在线观看| 欧美二区在线观看| 粉嫩aⅴ一区二区三区四区五区| 一区二区三区四区中文字幕| 精品福利av导航| 欧美日韩午夜精品| 成人性生交大片| 美女一区二区久久| 五月综合激情日本mⅴ| 亚洲欧美综合网| 亚洲精品一区二区三区影院 | 国产精品卡一卡二卡三| 91精品国产aⅴ一区二区| 91在线视频网址| 黄色精品一二区| 国产精品私房写真福利视频| 欧美高清视频在线高清观看mv色露露十八 | 国产精品一区二区男女羞羞无遮挡| 夜夜亚洲天天久久| 国产精品美女久久久久aⅴ| 欧美刺激午夜性久久久久久久| 色天天综合色天天久久| 国产aⅴ综合色| 国产在线播放一区| 久久精品国产免费| 裸体健美xxxx欧美裸体表演| 偷拍日韩校园综合在线| 亚洲综合免费观看高清完整版在线 | 国内精品国产三级国产a久久| 亚洲图片一区二区| 亚洲一区二区三区四区不卡| 亚洲人成在线观看一区二区| 国产精品久久久久久久久免费丝袜| 精品国产三级电影在线观看| 欧美福利视频一区| 欧美美女网站色| 欧美另类久久久品| 7777精品伊人久久久大香线蕉经典版下载| 91美女福利视频| 欧美视频在线一区| 欧美日韩一区中文字幕| 欧美日韩电影在线播放| 欧美性猛交一区二区三区精品| 欧美亚洲一区二区在线| 欧美偷拍一区二区| 在线播放国产精品二区一二区四区| 欧美日韩美少妇| 精品噜噜噜噜久久久久久久久试看| 日韩欧美国产午夜精品| 精品三级在线看| 久久久精品国产免大香伊| 国产精品入口麻豆九色| 亚洲欧美日韩久久| 亚洲综合999| 日本欧美一区二区三区| 国产一区二区三区四区五区美女| 国产一区二区三区在线观看精品| 成人精品小蝌蚪| 91国产福利在线| 日韩一级欧美一级| 国产精品美日韩| 一区二区高清免费观看影视大全| 亚洲成人综合在线| 久久精品国产亚洲a| 99久久综合精品| 91精品国产黑色紧身裤美女| 久久久www免费人成精品| 自拍偷自拍亚洲精品播放| 视频一区中文字幕国产| 国产高清精品久久久久| 色婷婷av一区二区三区大白胸| 欧美一区二区美女| 中文字幕制服丝袜成人av| 婷婷综合久久一区二区三区| 国产精品1区二区.| 欧美日韩一区二区三区四区五区| 亚洲精品一区二区三区精华液| 一区二区三区在线观看动漫 | 18成人在线视频|