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

📄 form1.vb

📁 VB.NET制作赛车游戏
💻 VB
📖 第 1 页 / 共 5 页
字号:
Public Class Form1
    Inherits System.Windows.Forms.Form
    Dim l, r, sp, AL, AR, ZL, ZR, Lt, Rt, k, Lp, Rp, Rm, Lm As Integer
    Dim time% = 0, score% = 10
    Dim space1 As Short = 1
    Dim time0 As Int32 = 0
#Region " Windows 窗体设计器生成的代码 "

    Public Sub New()
        MyBase.New()

        '该调用是 Windows 窗体设计器所必需的。
        InitializeComponent()

        '在 InitializeComponent() 调用之后添加任何初始化

    End Sub

    '窗体重写 dispose 以清理组件列表。
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Windows 窗体设计器所必需的
    Private components As System.ComponentModel.IContainer

    '注意: 以下过程是 Windows 窗体设计器所必需的
    '可以使用 Windows 窗体设计器修改此过程。
    '不要使用代码编辑器修改它。
    Friend WithEvents zhongxian6 As System.Windows.Forms.PictureBox
    Friend WithEvents PictureBox102 As System.Windows.Forms.PictureBox
    Friend WithEvents PictureBox103 As System.Windows.Forms.PictureBox
    Friend WithEvents PictureBox104 As System.Windows.Forms.PictureBox
    Friend WithEvents PictureBox105 As System.Windows.Forms.PictureBox
    Friend WithEvents PictureBox101 As System.Windows.Forms.PictureBox
    Friend WithEvents PictureBox011 As System.Windows.Forms.PictureBox
    Friend WithEvents PictureBox012 As System.Windows.Forms.PictureBox
    Friend WithEvents PictureBox013 As System.Windows.Forms.PictureBox
    Friend WithEvents PictureBox014 As System.Windows.Forms.PictureBox
    Friend WithEvents PictureBox015 As System.Windows.Forms.PictureBox
    Friend WithEvents PictureBox106 As System.Windows.Forms.PictureBox
    Friend WithEvents PictureBox016 As System.Windows.Forms.PictureBox
    Friend WithEvents PictureBox1 As System.Windows.Forms.PictureBox
    Friend WithEvents PictureBox2 As System.Windows.Forms.PictureBox
    Friend WithEvents PictureBox3 As System.Windows.Forms.PictureBox
    Friend WithEvents PictureBox4 As System.Windows.Forms.PictureBox
    Friend WithEvents PictureBox5 As System.Windows.Forms.PictureBox
    Friend WithEvents PictureBox6 As System.Windows.Forms.PictureBox
    Friend WithEvents zhong As System.Windows.Forms.PictureBox
    Friend WithEvents control As System.Windows.Forms.Timer
    Friend WithEvents background As System.Windows.Forms.Timer
    Friend WithEvents start As System.Windows.Forms.PictureBox
    Friend WithEvents destination As System.Windows.Forms.PictureBox
    Friend WithEvents Begin As System.Windows.Forms.Timer
    Friend WithEvents meter As System.Windows.Forms.Timer
    Friend WithEvents zhuche As System.Windows.Forms.PictureBox
    Friend WithEvents car1 As System.Windows.Forms.PictureBox
    Friend WithEvents car0 As System.Windows.Forms.PictureBox
    Friend WithEvents car3 As System.Windows.Forms.PictureBox
    Friend WithEvents car2 As System.Windows.Forms.PictureBox
    Friend WithEvents track As System.Windows.Forms.PictureBox
    Friend WithEvents right_side As System.Windows.Forms.PictureBox
    Friend WithEvents left_side As System.Windows.Forms.PictureBox
    Friend WithEvents Label2 As System.Windows.Forms.Label
    Friend WithEvents check As System.Windows.Forms.Timer
    Friend WithEvents me_car As System.Windows.Forms.PictureBox
    Friend WithEvents right_zhuangche As System.Windows.Forms.PictureBox
    Friend WithEvents left_zhuangche As System.Windows.Forms.PictureBox
    Friend WithEvents zhuangche1 As System.Windows.Forms.PictureBox
    Friend WithEvents zhuangche2 As System.Windows.Forms.PictureBox
    Friend WithEvents zhuangche3 As System.Windows.Forms.PictureBox
    Friend WithEvents zhuangche4 As System.Windows.Forms.PictureBox
    Friend WithEvents zhuangche5 As System.Windows.Forms.PictureBox
    Friend WithEvents yellow As System.Windows.Forms.PictureBox
    Friend WithEvents blue As System.Windows.Forms.PictureBox
    Friend WithEvents red As System.Windows.Forms.PictureBox
    Friend WithEvents right_baozha3 As System.Windows.Forms.PictureBox
    Friend WithEvents right_baozha1 As System.Windows.Forms.PictureBox
    Friend WithEvents right_baozha2 As System.Windows.Forms.PictureBox
    Friend WithEvents recover As System.Windows.Forms.PictureBox
    Friend WithEvents baozha3 As System.Windows.Forms.PictureBox
    Friend WithEvents baozha1 As System.Windows.Forms.PictureBox
    Friend WithEvents baozha2 As System.Windows.Forms.PictureBox
    Friend WithEvents car4 As System.Windows.Forms.PictureBox
    Friend WithEvents car5 As System.Windows.Forms.PictureBox
    Friend WithEvents car6 As System.Windows.Forms.PictureBox
    Friend WithEvents car7 As System.Windows.Forms.PictureBox
    Friend WithEvents follow_avoid As System.Windows.Forms.Timer
    Friend WithEvents Label88 As System.Windows.Forms.Label
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents Label9 As System.Windows.Forms.Label
    Friend WithEvents Label3 As System.Windows.Forms.Label
    Friend WithEvents Label10 As System.Windows.Forms.Label
    Friend WithEvents Label11 As System.Windows.Forms.Label
    Friend WithEvents Label12 As System.Windows.Forms.Label
    Friend WithEvents PictureBox7 As System.Windows.Forms.PictureBox
    Friend WithEvents PictureBox8 As System.Windows.Forms.PictureBox
    Friend WithEvents PictureBox9 As System.Windows.Forms.PictureBox
    Friend WithEvents biaozhi As System.Windows.Forms.PictureBox
    Friend WithEvents Label4 As System.Windows.Forms.Label
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.components = New System.ComponentModel.Container
        Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(Form1))
        Me.zhongxian6 = New System.Windows.Forms.PictureBox
        Me.right_side = New System.Windows.Forms.PictureBox
        Me.left_side = New System.Windows.Forms.PictureBox
        Me.zhong = New System.Windows.Forms.PictureBox
        Me.track = New System.Windows.Forms.PictureBox
        Me.PictureBox102 = New System.Windows.Forms.PictureBox
        Me.PictureBox103 = New System.Windows.Forms.PictureBox
        Me.PictureBox104 = New System.Windows.Forms.PictureBox
        Me.PictureBox105 = New System.Windows.Forms.PictureBox
        Me.PictureBox101 = New System.Windows.Forms.PictureBox
        Me.PictureBox011 = New System.Windows.Forms.PictureBox
        Me.PictureBox012 = New System.Windows.Forms.PictureBox
        Me.PictureBox013 = New System.Windows.Forms.PictureBox
        Me.PictureBox014 = New System.Windows.Forms.PictureBox
        Me.PictureBox015 = New System.Windows.Forms.PictureBox
        Me.PictureBox106 = New System.Windows.Forms.PictureBox
        Me.PictureBox016 = New System.Windows.Forms.PictureBox
        Me.PictureBox1 = New System.Windows.Forms.PictureBox
        Me.PictureBox2 = New System.Windows.Forms.PictureBox
        Me.PictureBox3 = New System.Windows.Forms.PictureBox
        Me.PictureBox4 = New System.Windows.Forms.PictureBox
        Me.PictureBox5 = New System.Windows.Forms.PictureBox
        Me.PictureBox6 = New System.Windows.Forms.PictureBox
        Me.control = New System.Windows.Forms.Timer(Me.components)
        Me.background = New System.Windows.Forms.Timer(Me.components)
        Me.Begin = New System.Windows.Forms.Timer(Me.components)
        Me.start = New System.Windows.Forms.PictureBox
        Me.destination = New System.Windows.Forms.PictureBox
        Me.car1 = New System.Windows.Forms.PictureBox
        Me.car0 = New System.Windows.Forms.PictureBox
        Me.car3 = New System.Windows.Forms.PictureBox
        Me.car2 = New System.Windows.Forms.PictureBox
        Me.zhuche = New System.Windows.Forms.PictureBox
        Me.meter = New System.Windows.Forms.Timer(Me.components)
        Me.Label2 = New System.Windows.Forms.Label
        Me.Label88 = New System.Windows.Forms.Label
        Me.check = New System.Windows.Forms.Timer(Me.components)
        Me.me_car = New System.Windows.Forms.PictureBox
        Me.right_zhuangche = New System.Windows.Forms.PictureBox
        Me.left_zhuangche = New System.Windows.Forms.PictureBox
        Me.zhuangche1 = New System.Windows.Forms.PictureBox
        Me.zhuangche2 = New System.Windows.Forms.PictureBox
        Me.zhuangche3 = New System.Windows.Forms.PictureBox
        Me.zhuangche4 = New System.Windows.Forms.PictureBox
        Me.zhuangche5 = New System.Windows.Forms.PictureBox
        Me.yellow = New System.Windows.Forms.PictureBox
        Me.blue = New System.Windows.Forms.PictureBox
        Me.red = New System.Windows.Forms.PictureBox
        Me.baozha3 = New System.Windows.Forms.PictureBox
        Me.baozha1 = New System.Windows.Forms.PictureBox
        Me.recover = New System.Windows.Forms.PictureBox
        Me.right_baozha3 = New System.Windows.Forms.PictureBox
        Me.right_baozha1 = New System.Windows.Forms.PictureBox
        Me.right_baozha2 = New System.Windows.Forms.PictureBox
        Me.baozha2 = New System.Windows.Forms.PictureBox
        Me.car4 = New System.Windows.Forms.PictureBox
        Me.car5 = New System.Windows.Forms.PictureBox
        Me.car6 = New System.Windows.Forms.PictureBox
        Me.car7 = New System.Windows.Forms.PictureBox
        Me.follow_avoid = New System.Windows.Forms.Timer(Me.components)
        Me.Label1 = New System.Windows.Forms.Label
        Me.Label9 = New System.Windows.Forms.Label
        Me.Label3 = New System.Windows.Forms.Label
        Me.Label10 = New System.Windows.Forms.Label
        Me.Label11 = New System.Windows.Forms.Label
        Me.Label12 = New System.Windows.Forms.Label
        Me.PictureBox7 = New System.Windows.Forms.PictureBox
        Me.PictureBox8 = New System.Windows.Forms.PictureBox
        Me.PictureBox9 = New System.Windows.Forms.PictureBox
        Me.biaozhi = New System.Windows.Forms.PictureBox
        Me.Label4 = New System.Windows.Forms.Label
        Me.SuspendLayout()
        '
        'zhongxian6
        '
        Me.zhongxian6.Image = CType(resources.GetObject("zhongxian6.Image"), System.Drawing.Image)
        Me.zhongxian6.Location = New System.Drawing.Point(118, -31)
        Me.zhongxian6.Name = "zhongxian6"
        Me.zhongxian6.Size = New System.Drawing.Size(2, 20)
        Me.zhongxian6.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage
        Me.zhongxian6.TabIndex = 50
        Me.zhongxian6.TabStop = False
        '
        'right_side
        '
        Me.right_side.Image = CType(resources.GetObject("right_side.Image"), System.Drawing.Image)
        Me.right_side.Location = New System.Drawing.Point(153, 0)
        Me.right_side.Name = "right_side"
        Me.right_side.Size = New System.Drawing.Size(48, 48)
        Me.right_side.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
        Me.right_side.TabIndex = 45
        Me.right_side.TabStop = False
        '
        'left_side
        '
        Me.left_side.Image = CType(resources.GetObject("left_side.Image"), System.Drawing.Image)
        Me.left_side.Location = New System.Drawing.Point(0, 0)
        Me.left_side.Name = "left_side"
        Me.left_side.Size = New System.Drawing.Size(75, 48)
        Me.left_side.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
        Me.left_side.TabIndex = 39
        Me.left_side.TabStop = False
        '
        'zhong
        '
        Me.zhong.Image = CType(resources.GetObject("zhong.Image"), System.Drawing.Image)
        Me.zhong.Location = New System.Drawing.Point(114, 304)
        Me.zhong.Name = "zhong"
        Me.zhong.Size = New System.Drawing.Size(2, 20)
        Me.zhong.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage
        Me.zhong.TabIndex = 37
        Me.zhong.TabStop = False
        '
        'track
        '
        Me.track.Image = CType(resources.GetObject("track.Image"), System.Drawing.Image)
        Me.track.Location = New System.Drawing.Point(0, 0)
        Me.track.Name = "track"
        Me.track.Size = New System.Drawing.Size(200, 240)
        Me.track.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
        Me.track.TabIndex = 32
        Me.track.TabStop = False
        '
        'PictureBox102
        '
        Me.PictureBox102.Location = New System.Drawing.Point(0, 144)
        Me.PictureBox102.Name = "PictureBox102"
        Me.PictureBox102.Size = New System.Drawing.Size(75, 48)
        Me.PictureBox102.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
        Me.PictureBox102.TabIndex = 54
        Me.PictureBox102.TabStop = False
        '
        'PictureBox103
        '
        Me.PictureBox103.Location = New System.Drawing.Point(0, 96)
        Me.PictureBox103.Name = "PictureBox103"
        Me.PictureBox103.Size = New System.Drawing.Size(75, 48)
        Me.PictureBox103.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
        Me.PictureBox103.TabIndex = 55
        Me.PictureBox103.TabStop = False
        '
        'PictureBox104
        '
        Me.PictureBox104.Location = New System.Drawing.Point(0, 48)
        Me.PictureBox104.Name = "PictureBox104"
        Me.PictureBox104.Size = New System.Drawing.Size(75, 48)
        Me.PictureBox104.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
        Me.PictureBox104.TabIndex = 56
        Me.PictureBox104.TabStop = False
        '
        'PictureBox105
        '
        Me.PictureBox105.Location = New System.Drawing.Point(0, 0)
        Me.PictureBox105.Name = "PictureBox105"
        Me.PictureBox105.Size = New System.Drawing.Size(75, 48)
        Me.PictureBox105.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
        Me.PictureBox105.TabIndex = 57
        Me.PictureBox105.TabStop = False
        '
        'PictureBox101
        '
        Me.PictureBox101.Location = New System.Drawing.Point(0, 192)
        Me.PictureBox101.Name = "PictureBox101"
        Me.PictureBox101.Size = New System.Drawing.Size(75, 48)
        Me.PictureBox101.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
        Me.PictureBox101.TabIndex = 58
        Me.PictureBox101.TabStop = False
        '
        'PictureBox011
        '
        Me.PictureBox011.Location = New System.Drawing.Point(153, 192)
        Me.PictureBox011.Name = "PictureBox011"
        Me.PictureBox011.Size = New System.Drawing.Size(48, 48)
        Me.PictureBox011.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
        Me.PictureBox011.TabIndex = 59
        Me.PictureBox011.TabStop = False
        '
        'PictureBox012
        '
        Me.PictureBox012.Location = New System.Drawing.Point(153, 144)
        Me.PictureBox012.Name = "PictureBox012"
        Me.PictureBox012.Size = New System.Drawing.Size(48, 48)
        Me.PictureBox012.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage

⌨️ 快捷键说明

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