Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Public Class frmFrogger
- Inherits System.Windows.Forms.Form
- #Region " Windows Form Designer generated code "
- Public Sub New()
- MyBase.New()
- 'This call is required by the Windows Form Designer.
- InitializeComponent()
- 'Add any initialization after the InitializeComponent() call
- End Sub
- 'Form overrides dispose to clean up the component list.
- 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
- 'Required by the Windows Form Designer
- Private components As System.ComponentModel.IContainer
- 'NOTE: The following procedure is required by the Windows Form Designer
- 'It can be modified using the Windows Form Designer.
- 'Do not modify it using the code editor.
- Friend WithEvents pctFrog As System.Windows.Forms.PictureBox
- Friend WithEvents tmrCarLeft As System.Windows.Forms.Timer
- Friend WithEvents tmrCarRight As System.Windows.Forms.Timer
- Friend WithEvents car501 As System.Windows.Forms.PictureBox
- Friend WithEvents car301 As System.Windows.Forms.PictureBox
- Friend WithEvents car201 As System.Windows.Forms.PictureBox
- Friend WithEvents car101 As System.Windows.Forms.PictureBox
- Friend WithEvents car503 As System.Windows.Forms.PictureBox
- Friend WithEvents car502 As System.Windows.Forms.PictureBox
- Friend WithEvents car302 As System.Windows.Forms.PictureBox
- Friend WithEvents car303 As System.Windows.Forms.PictureBox
- Friend WithEvents car202 As System.Windows.Forms.PictureBox
- Friend WithEvents car203 As System.Windows.Forms.PictureBox
- Friend WithEvents car102 As System.Windows.Forms.PictureBox
- Friend WithEvents car103 As System.Windows.Forms.PictureBox
- Friend WithEvents unsafe3 As System.Windows.Forms.Label
- Friend WithEvents river1 As System.Windows.Forms.Label
- Friend WithEvents river5 As System.Windows.Forms.Label
- Friend WithEvents river4 As System.Windows.Forms.Label
- Friend WithEvents river3 As System.Windows.Forms.Label
- Friend WithEvents safe2 As System.Windows.Forms.Label
- Friend WithEvents road2 As System.Windows.Forms.Label
- Friend WithEvents road3 As System.Windows.Forms.Label
- Friend WithEvents road4 As System.Windows.Forms.Label
- Friend WithEvents road5 As System.Windows.Forms.Label
- Friend WithEvents road1 As System.Windows.Forms.Label
- Friend WithEvents safe1 As System.Windows.Forms.Label
- Friend WithEvents pad1 As System.Windows.Forms.Label
- Friend WithEvents pad2 As System.Windows.Forms.Label
- Friend WithEvents pad5 As System.Windows.Forms.Label
- Friend WithEvents pad4 As System.Windows.Forms.Label
- Friend WithEvents pad3 As System.Windows.Forms.Label
- Friend WithEvents longlog1 As System.Windows.Forms.PictureBox
- Friend WithEvents medlog1 As System.Windows.Forms.PictureBox
- Friend WithEvents shortlog1 As System.Windows.Forms.PictureBox
- Friend WithEvents scorebox As System.Windows.Forms.Label
- Friend WithEvents car401 As System.Windows.Forms.PictureBox
- Friend WithEvents car402 As System.Windows.Forms.PictureBox
- Friend WithEvents car403 As System.Windows.Forms.PictureBox
- Friend WithEvents shortlog3 As System.Windows.Forms.PictureBox
- Friend WithEvents shortlog2 As System.Windows.Forms.PictureBox
- Friend WithEvents tmrlog As System.Windows.Forms.Timer
- Friend WithEvents river2 As System.Windows.Forms.Label
- Friend WithEvents longlog3 As System.Windows.Forms.PictureBox
- Friend WithEvents longlog2 As System.Windows.Forms.PictureBox
- Friend WithEvents medlog2 As System.Windows.Forms.PictureBox
- Friend WithEvents medlog3 As System.Windows.Forms.PictureBox
- Friend WithEvents medlog4 As System.Windows.Forms.PictureBox
- Friend WithEvents safefrog5 As System.Windows.Forms.PictureBox
- Friend WithEvents safefrog4 As System.Windows.Forms.PictureBox
- Friend WithEvents safefrog3 As System.Windows.Forms.PictureBox
- Friend WithEvents safefrog2 As System.Windows.Forms.PictureBox
- Friend WithEvents safefrog1 As System.Windows.Forms.PictureBox
- Friend WithEvents turtle2 As System.Windows.Forms.PictureBox
- Friend WithEvents turtle4 As System.Windows.Forms.PictureBox
- Friend WithEvents turtle3 As System.Windows.Forms.PictureBox
- Friend WithEvents tmrturtle As System.Windows.Forms.Timer
- Friend WithEvents turtle1 As System.Windows.Forms.PictureBox
- Friend WithEvents longturtle2 As System.Windows.Forms.PictureBox
- Friend WithEvents longturtle1 As System.Windows.Forms.PictureBox
- Friend WithEvents longturtle4 As System.Windows.Forms.PictureBox
- Friend WithEvents longturtle3 As System.Windows.Forms.PictureBox
- Friend WithEvents tmrtimer As System.Windows.Forms.Timer
- Friend WithEvents timer As System.Windows.Forms.Label
- Friend WithEvents Label1 As System.Windows.Forms.Label
- Friend WithEvents pctfrog2 As System.Windows.Forms.PictureBox
- Friend WithEvents pctfrog1 As System.Windows.Forms.PictureBox
- Friend WithEvents tmrpctfrog21 As System.Windows.Forms.Timer
- Friend WithEvents fren As System.Windows.Forms.PictureBox
- Friend WithEvents Label2 As System.Windows.Forms.Label
- Friend WithEvents Label3 As System.Windows.Forms.Label
- Friend WithEvents Label4 As System.Windows.Forms.Label
- Friend WithEvents Label5 As System.Windows.Forms.Label
- Friend WithEvents Label6 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(frmFrogger))
- Me.unsafe3 = New System.Windows.Forms.Label
- Me.river1 = New System.Windows.Forms.Label
- Me.river5 = New System.Windows.Forms.Label
- Me.river4 = New System.Windows.Forms.Label
- Me.river3 = New System.Windows.Forms.Label
- Me.safe2 = New System.Windows.Forms.Label
- Me.road2 = New System.Windows.Forms.Label
- Me.road3 = New System.Windows.Forms.Label
- Me.road4 = New System.Windows.Forms.Label
- Me.road5 = New System.Windows.Forms.Label
- Me.road1 = New System.Windows.Forms.Label
- Me.safe1 = New System.Windows.Forms.Label
- Me.pad1 = New System.Windows.Forms.Label
- Me.pctFrog = New System.Windows.Forms.PictureBox
- Me.pad2 = New System.Windows.Forms.Label
- Me.pad5 = New System.Windows.Forms.Label
- Me.pad4 = New System.Windows.Forms.Label
- Me.pad3 = New System.Windows.Forms.Label
- Me.tmrCarLeft = New System.Windows.Forms.Timer(Me.components)
- Me.tmrCarRight = New System.Windows.Forms.Timer(Me.components)
- Me.car501 = New System.Windows.Forms.PictureBox
- Me.car401 = New System.Windows.Forms.PictureBox
- Me.car301 = New System.Windows.Forms.PictureBox
- Me.car201 = New System.Windows.Forms.PictureBox
- Me.car101 = New System.Windows.Forms.PictureBox
- Me.longlog1 = New System.Windows.Forms.PictureBox
- Me.medlog1 = New System.Windows.Forms.PictureBox
- Me.shortlog1 = New System.Windows.Forms.PictureBox
- Me.scorebox = New System.Windows.Forms.Label
- Me.car503 = New System.Windows.Forms.PictureBox
- Me.car502 = New System.Windows.Forms.PictureBox
- Me.car402 = New System.Windows.Forms.PictureBox
- Me.car403 = New System.Windows.Forms.PictureBox
- Me.car302 = New System.Windows.Forms.PictureBox
- Me.car303 = New System.Windows.Forms.PictureBox
- Me.car202 = New System.Windows.Forms.PictureBox
- Me.car203 = New System.Windows.Forms.PictureBox
- Me.car102 = New System.Windows.Forms.PictureBox
- Me.car103 = New System.Windows.Forms.PictureBox
- Me.longturtle2 = New System.Windows.Forms.PictureBox
- Me.turtle2 = New System.Windows.Forms.PictureBox
- Me.shortlog3 = New System.Windows.Forms.PictureBox
- Me.shortlog2 = New System.Windows.Forms.PictureBox
- Me.tmrlog = New System.Windows.Forms.Timer(Me.components)
- Me.river2 = New System.Windows.Forms.Label
- Me.longlog3 = New System.Windows.Forms.PictureBox
- Me.longlog2 = New System.Windows.Forms.PictureBox
- Me.medlog2 = New System.Windows.Forms.PictureBox
- Me.medlog3 = New System.Windows.Forms.PictureBox
- Me.medlog4 = New System.Windows.Forms.PictureBox
- Me.safefrog5 = New System.Windows.Forms.PictureBox
- Me.safefrog4 = New System.Windows.Forms.PictureBox
- Me.safefrog3 = New System.Windows.Forms.PictureBox
- Me.safefrog2 = New System.Windows.Forms.PictureBox
- Me.safefrog1 = New System.Windows.Forms.PictureBox
- Me.turtle1 = New System.Windows.Forms.PictureBox
- Me.turtle4 = New System.Windows.Forms.PictureBox
- Me.turtle3 = New System.Windows.Forms.PictureBox
- Me.tmrturtle = New System.Windows.Forms.Timer(Me.components)
- Me.longturtle1 = New System.Windows.Forms.PictureBox
- Me.longturtle4 = New System.Windows.Forms.PictureBox
- Me.longturtle3 = New System.Windows.Forms.PictureBox
- Me.tmrtimer = New System.Windows.Forms.Timer(Me.components)
- Me.timer = New System.Windows.Forms.Label
- Me.Label1 = New System.Windows.Forms.Label
- Me.pctfrog2 = New System.Windows.Forms.PictureBox
- Me.pctfrog1 = New System.Windows.Forms.PictureBox
- Me.tmrpctfrog21 = New System.Windows.Forms.Timer(Me.components)
- Me.fren = New System.Windows.Forms.PictureBox
- Me.Label2 = New System.Windows.Forms.Label
- Me.Label3 = New System.Windows.Forms.Label
- Me.Label4 = New System.Windows.Forms.Label
- Me.Label5 = New System.Windows.Forms.Label
- Me.Label6 = New System.Windows.Forms.Label
- Me.SuspendLayout()
- '
- 'unsafe3
- '
- Me.unsafe3.BackColor = System.Drawing.Color.FromArgb(CType(128, Byte), CType(255, Byte), CType(128, Byte))
- Me.unsafe3.Location = New System.Drawing.Point(0, 50)
- Me.unsafe3.Name = "unsafe3"
- Me.unsafe3.Size = New System.Drawing.Size(800, 50)
- Me.unsafe3.TabIndex = 3
- '
- 'river1
- '
- Me.river1.BackColor = System.Drawing.Color.FromArgb(CType(128, Byte), CType(255, Byte), CType(255, Byte))
- Me.river1.Location = New System.Drawing.Point(0, 100)
- Me.river1.Name = "river1"
- Me.river1.Size = New System.Drawing.Size(800, 50)
- Me.river1.TabIndex = 4
- '
- 'river5
- '
- Me.river5.BackColor = System.Drawing.Color.FromArgb(CType(128, Byte), CType(255, Byte), CType(255, Byte))
- Me.river5.Location = New System.Drawing.Point(0, 300)
- Me.river5.Name = "river5"
- Me.river5.Size = New System.Drawing.Size(800, 50)
- Me.river5.TabIndex = 5
- '
- 'river4
- '
- Me.river4.BackColor = System.Drawing.Color.FromArgb(CType(128, Byte), CType(255, Byte), CType(255, Byte))
- Me.river4.Location = New System.Drawing.Point(0, 250)
- Me.river4.Name = "river4"
- Me.river4.Size = New System.Drawing.Size(800, 50)
- Me.river4.TabIndex = 6
- '
- 'river3
- '
- Me.river3.BackColor = System.Drawing.Color.FromArgb(CType(128, Byte), CType(255, Byte), CType(255, Byte))
- Me.river3.Location = New System.Drawing.Point(0, 200)
- Me.river3.Name = "river3"
- Me.river3.Size = New System.Drawing.Size(800, 50)
- Me.river3.TabIndex = 7
- '
- 'safe2
- '
- Me.safe2.BackColor = System.Drawing.Color.FromArgb(CType(128, Byte), CType(255, Byte), CType(128, Byte))
- Me.safe2.Location = New System.Drawing.Point(0, 350)
- Me.safe2.Name = "safe2"
- Me.safe2.Size = New System.Drawing.Size(800, 50)
- Me.safe2.TabIndex = 9
- '
- 'road2
- '
- Me.road2.BackColor = System.Drawing.Color.FromArgb(CType(64, Byte), CType(64, Byte), CType(64, Byte))
- Me.road2.Location = New System.Drawing.Point(0, 450)
- Me.road2.Name = "road2"
- Me.road2.Size = New System.Drawing.Size(800, 50)
- Me.road2.TabIndex = 14
- '
- 'road3
- '
- Me.road3.BackColor = System.Drawing.Color.FromArgb(CType(64, Byte), CType(64, Byte), CType(64, Byte))
- Me.road3.Location = New System.Drawing.Point(0, 500)
- Me.road3.Name = "road3"
- Me.road3.Size = New System.Drawing.Size(800, 50)
- Me.road3.TabIndex = 13
- '
- 'road4
- '
- Me.road4.BackColor = System.Drawing.Color.FromArgb(CType(64, Byte), CType(64, Byte), CType(64, Byte))
- Me.road4.Location = New System.Drawing.Point(0, 550)
- Me.road4.Name = "road4"
- Me.road4.Size = New System.Drawing.Size(800, 50)
- Me.road4.TabIndex = 12
- '
- 'road5
- '
- Me.road5.BackColor = System.Drawing.Color.FromArgb(CType(64, Byte), CType(64, Byte), CType(64, Byte))
- Me.road5.Location = New System.Drawing.Point(0, 600)
- Me.road5.Name = "road5"
- Me.road5.Size = New System.Drawing.Size(800, 50)
- Me.road5.TabIndex = 11
- '
- 'road1
- '
- Me.road1.BackColor = System.Drawing.Color.FromArgb(CType(64, Byte), CType(64, Byte), CType(64, Byte))
- Me.road1.Location = New System.Drawing.Point(0, 400)
- Me.road1.Name = "road1"
- Me.road1.Size = New System.Drawing.Size(800, 50)
- Me.road1.TabIndex = 10
- '
- 'safe1
- '
- Me.safe1.BackColor = System.Drawing.Color.FromArgb(CType(128, Byte), CType(255, Byte), CType(128, Byte))
- Me.safe1.Location = New System.Drawing.Point(0, 650)
- Me.safe1.Name = "safe1"
- Me.safe1.Size = New System.Drawing.Size(800, 50)
- Me.safe1.TabIndex = 15
- '
- 'pad1
- '
- Me.pad1.BackColor = System.Drawing.Color.FromArgb(CType(128, Byte), CType(255, Byte), CType(255, Byte))
- Me.pad1.Location = New System.Drawing.Point(66, 40)
- Me.pad1.Name = "pad1"
- Me.pad1.Size = New System.Drawing.Size(60, 60)
- Me.pad1.TabIndex = 17
- '
- 'pctFrog
- '
- Me.pctFrog.BackColor = System.Drawing.Color.Lime
- Me.pctFrog.Image = CType(resources.GetObject("pctFrog.Image"), System.Drawing.Image)
- Me.pctFrog.Location = New System.Drawing.Point(372, 655)
- Me.pctFrog.Name = "pctFrog"
- Me.pctFrog.Size = New System.Drawing.Size(40, 40)
- Me.pctFrog.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
- Me.pctFrog.TabIndex = 18
- Me.pctFrog.TabStop = False
- '
- 'pad2
- '
- Me.pad2.BackColor = System.Drawing.Color.FromArgb(CType(128, Byte), CType(255, Byte), CType(255, Byte))
- Me.pad2.Location = New System.Drawing.Point(216, 40)
- Me.pad2.Name = "pad2"
- Me.pad2.Size = New System.Drawing.Size(60, 60)
- Me.pad2.TabIndex = 19
- '
- 'pad5
- '
- Me.pad5.BackColor = System.Drawing.Color.FromArgb(CType(128, Byte), CType(255, Byte), CType(255, Byte))
- Me.pad5.Location = New System.Drawing.Point(668, 40)
- Me.pad5.Name = "pad5"
- Me.pad5.Size = New System.Drawing.Size(60, 60)
- Me.pad5.TabIndex = 20
- '
- 'pad4
- '
- Me.pad4.BackColor = System.Drawing.Color.FromArgb(CType(128, Byte), CType(255, Byte), CType(255, Byte))
- Me.pad4.Location = New System.Drawing.Point(518, 40)
- Me.pad4.Name = "pad4"
- Me.pad4.Size = New System.Drawing.Size(60, 60)
- Me.pad4.TabIndex = 21
- '
- 'pad3
- '
- Me.pad3.BackColor = System.Drawing.Color.FromArgb(CType(128, Byte), CType(255, Byte), CType(255, Byte))
- Me.pad3.Location = New System.Drawing.Point(368, 40)
- Me.pad3.Name = "pad3"
- Me.pad3.Size = New System.Drawing.Size(60, 60)
- Me.pad3.TabIndex = 22
- '
- 'tmrCarLeft
- '
- Me.tmrCarLeft.Enabled = True
- Me.tmrCarLeft.Interval = 50
- '
- 'tmrCarRight
- '
- Me.tmrCarRight.Enabled = True
- Me.tmrCarRight.Interval = 50
- '
- 'car501
- '
- Me.car501.BackColor = System.Drawing.SystemColors.ActiveBorder
- Me.car501.Location = New System.Drawing.Point(52, 602)
- Me.car501.Name = "car501"
- Me.car501.Size = New System.Drawing.Size(54, 46)
- Me.car501.TabIndex = 23
- Me.car501.TabStop = False
- '
- 'car401
- '
- Me.car401.BackColor = System.Drawing.Color.FromArgb(CType(64, Byte), CType(64, Byte), CType(64, Byte))
- Me.car401.Image = CType(resources.GetObject("car401.Image"), System.Drawing.Image)
- Me.car401.Location = New System.Drawing.Point(658, 556)
- Me.car401.Name = "car401"
- Me.car401.Size = New System.Drawing.Size(86, 38)
- Me.car401.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
- Me.car401.TabIndex = 26
- Me.car401.TabStop = False
- '
- 'car301
- '
- Me.car301.BackColor = System.Drawing.Color.FromArgb(CType(64, Byte), CType(64, Byte), CType(64, Byte))
- Me.car301.Image = CType(resources.GetObject("car301.Image"), System.Drawing.Image)
- Me.car301.Location = New System.Drawing.Point(52, 510)
- Me.car301.Name = "car301"
- Me.car301.Size = New System.Drawing.Size(59, 32)
- Me.car301.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
- Me.car301.TabIndex = 29
- Me.car301.TabStop = False
- '
- 'car201
- '
- Me.car201.BackColor = System.Drawing.SystemColors.ActiveBorder
- Me.car201.Image = CType(resources.GetObject("car201.Image"), System.Drawing.Image)
- Me.car201.Location = New System.Drawing.Point(684, 456)
- Me.car201.Name = "car201"
- Me.car201.Size = New System.Drawing.Size(38, 38)
- Me.car201.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
- Me.car201.TabIndex = 30
- Me.car201.TabStop = False
- '
- 'car101
- '
- Me.car101.BackColor = System.Drawing.SystemColors.ActiveBorder
- Me.car101.Image = CType(resources.GetObject("car101.Image"), System.Drawing.Image)
- Me.car101.Location = New System.Drawing.Point(54, 407)
- Me.car101.Name = "car101"
- Me.car101.Size = New System.Drawing.Size(45, 36)
- Me.car101.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
- Me.car101.TabIndex = 31
- Me.car101.TabStop = False
- '
- 'longlog1
- '
- Me.longlog1.BackColor = System.Drawing.Color.FromArgb(CType(128, Byte), CType(64, Byte), CType(0, Byte))
- Me.longlog1.Image = CType(resources.GetObject("longlog1.Image"), System.Drawing.Image)
- Me.longlog1.Location = New System.Drawing.Point(-600, 200)
- Me.longlog1.Name = "longlog1"
- Me.longlog1.Size = New System.Drawing.Size(321, 50)
- Me.longlog1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
- Me.longlog1.TabIndex = 32
- Me.longlog1.TabStop = False
- '
- 'medlog1
- '
- Me.medlog1.BackColor = System.Drawing.Color.FromArgb(CType(128, Byte), CType(64, Byte), CType(0, Byte))
- Me.medlog1.Location = New System.Drawing.Point(-300, 100)
- Me.medlog1.Name = "medlog1"
- Me.medlog1.Size = New System.Drawing.Size(220, 50)
- Me.medlog1.TabIndex = 33
- Me.medlog1.TabStop = False
- '
- 'shortlog1
- '
- Me.shortlog1.BackColor = System.Drawing.Color.FromArgb(CType(128, Byte), CType(64, Byte), CType(0, Byte))
- Me.shortlog1.Location = New System.Drawing.Point(0, 250)
- Me.shortlog1.Name = "shortlog1"
- Me.shortlog1.Size = New System.Drawing.Size(150, 50)
- Me.shortlog1.TabIndex = 34
- Me.shortlog1.TabStop = False
- '
- 'scorebox
- '
- Me.scorebox.BackColor = System.Drawing.SystemColors.Desktop
- Me.scorebox.Location = New System.Drawing.Point(0, 0)
- Me.scorebox.Name = "scorebox"
- Me.scorebox.Size = New System.Drawing.Size(800, 50)
- Me.scorebox.TabIndex = 2
- Me.scorebox.Text = "Score"
- '
- 'car503
- '
- Me.car503.BackColor = System.Drawing.SystemColors.ActiveBorder
- Me.car503.Location = New System.Drawing.Point(642, 602)
- Me.car503.Name = "car503"
- Me.car503.Size = New System.Drawing.Size(54, 46)
- Me.car503.TabIndex = 35
- Me.car503.TabStop = False
- '
- 'car502
- '
- Me.car502.BackColor = System.Drawing.SystemColors.ActiveBorder
- Me.car502.Location = New System.Drawing.Point(360, 602)
- Me.car502.Name = "car502"
- Me.car502.Size = New System.Drawing.Size(54, 46)
- Me.car502.TabIndex = 36
- Me.car502.TabStop = False
- '
- 'car402
- '
- Me.car402.BackColor = System.Drawing.Color.FromArgb(CType(64, Byte), CType(64, Byte), CType(64, Byte))
- Me.car402.Image = CType(resources.GetObject("car402.Image"), System.Drawing.Image)
- Me.car402.Location = New System.Drawing.Point(184, 556)
- Me.car402.Name = "car402"
- Me.car402.Size = New System.Drawing.Size(86, 38)
- Me.car402.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
- Me.car402.TabIndex = 37
- Me.car402.TabStop = False
- '
- 'car403
- '
- Me.car403.BackColor = System.Drawing.Color.FromArgb(CType(64, Byte), CType(64, Byte), CType(64, Byte))
- Me.car403.Image = CType(resources.GetObject("car403.Image"), System.Drawing.Image)
- Me.car403.Location = New System.Drawing.Point(-300, 556)
- Me.car403.Name = "car403"
- Me.car403.Size = New System.Drawing.Size(90, 38)
- Me.car403.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
- Me.car403.TabIndex = 38
- Me.car403.TabStop = False
- '
- 'car302
- '
- Me.car302.BackColor = System.Drawing.Color.FromArgb(CType(64, Byte), CType(64, Byte), CType(64, Byte))
- Me.car302.Image = CType(resources.GetObject("car302.Image"), System.Drawing.Image)
- Me.car302.Location = New System.Drawing.Point(508, 510)
- Me.car302.Name = "car302"
- Me.car302.Size = New System.Drawing.Size(59, 32)
- Me.car302.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
- Me.car302.TabIndex = 39
- Me.car302.TabStop = False
- '
- 'car303
- '
- Me.car303.BackColor = System.Drawing.Color.FromArgb(CType(64, Byte), CType(64, Byte), CType(64, Byte))
- Me.car303.Image = CType(resources.GetObject("car303.Image"), System.Drawing.Image)
- Me.car303.Location = New System.Drawing.Point(314, 510)
- Me.car303.Name = "car303"
- Me.car303.Size = New System.Drawing.Size(59, 32)
- Me.car303.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
- Me.car303.TabIndex = 40
- Me.car303.TabStop = False
- '
- 'car202
- '
- Me.car202.BackColor = System.Drawing.Color.White
- Me.car202.Image = CType(resources.GetObject("car202.Image"), System.Drawing.Image)
- Me.car202.Location = New System.Drawing.Point(378, 456)
- Me.car202.Name = "car202"
- Me.car202.Size = New System.Drawing.Size(38, 38)
- Me.car202.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
- Me.car202.TabIndex = 41
- Me.car202.TabStop = False
- '
- 'car203
- '
- Me.car203.BackColor = System.Drawing.SystemColors.ActiveBorder
- Me.car203.Image = CType(resources.GetObject("car203.Image"), System.Drawing.Image)
- Me.car203.Location = New System.Drawing.Point(1000, 456)
- Me.car203.Name = "car203"
- Me.car203.Size = New System.Drawing.Size(38, 38)
- Me.car203.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
- Me.car203.TabIndex = 42
- Me.car203.TabStop = False
- '
- 'car102
- '
- Me.car102.BackColor = System.Drawing.SystemColors.ActiveBorder
- Me.car102.Image = CType(resources.GetObject("car102.Image"), System.Drawing.Image)
- Me.car102.Location = New System.Drawing.Point(232, 407)
- Me.car102.Name = "car102"
- Me.car102.Size = New System.Drawing.Size(45, 36)
- Me.car102.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
- Me.car102.TabIndex = 43
- Me.car102.TabStop = False
- '
- 'car103
- '
- Me.car103.BackColor = System.Drawing.SystemColors.ActiveBorder
- Me.car103.Image = CType(resources.GetObject("car103.Image"), System.Drawing.Image)
- Me.car103.Location = New System.Drawing.Point(432, 407)
- Me.car103.Name = "car103"
- Me.car103.Size = New System.Drawing.Size(45, 36)
- Me.car103.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
- Me.car103.TabIndex = 44
- Me.car103.TabStop = False
- '
- 'longturtle2
- '
- Me.longturtle2.BackColor = System.Drawing.Color.Green
- Me.longturtle2.Location = New System.Drawing.Point(232, 300)
- Me.longturtle2.Name = "longturtle2"
- Me.longturtle2.Size = New System.Drawing.Size(170, 50)
- Me.longturtle2.TabIndex = 45
- Me.longturtle2.TabStop = False
- '
- 'turtle2
- '
- Me.turtle2.BackColor = System.Drawing.Color.Green
- Me.turtle2.Location = New System.Drawing.Point(206, 150)
- Me.turtle2.Name = "turtle2"
- Me.turtle2.Size = New System.Drawing.Size(125, 50)
- Me.turtle2.TabIndex = 46
- Me.turtle2.TabStop = False
- '
- 'shortlog3
- '
- Me.shortlog3.BackColor = System.Drawing.Color.FromArgb(CType(128, Byte), CType(64, Byte), CType(0, Byte))
- Me.shortlog3.Location = New System.Drawing.Point(634, 250)
- Me.shortlog3.Name = "shortlog3"
- Me.shortlog3.Size = New System.Drawing.Size(150, 50)
- Me.shortlog3.TabIndex = 47
- Me.shortlog3.TabStop = False
- '
- 'shortlog2
- '
- Me.shortlog2.BackColor = System.Drawing.Color.FromArgb(CType(128, Byte), CType(64, Byte), CType(0, Byte))
- Me.shortlog2.Location = New System.Drawing.Point(316, 250)
- Me.shortlog2.Name = "shortlog2"
- Me.shortlog2.Size = New System.Drawing.Size(150, 50)
- Me.shortlog2.TabIndex = 48
- Me.shortlog2.TabStop = False
- '
- 'tmrlog
- '
- Me.tmrlog.Enabled = True
- Me.tmrlog.Interval = 50
- '
- 'river2
- '
- Me.river2.BackColor = System.Drawing.Color.FromArgb(CType(128, Byte), CType(255, Byte), CType(255, Byte))
- Me.river2.Location = New System.Drawing.Point(0, 150)
- Me.river2.Name = "river2"
- Me.river2.Size = New System.Drawing.Size(800, 50)
- Me.river2.TabIndex = 8
- '
- 'longlog3
- '
- Me.longlog3.BackColor = System.Drawing.Color.FromArgb(CType(128, Byte), CType(64, Byte), CType(0, Byte))
- Me.longlog3.Image = CType(resources.GetObject("longlog3.Image"), System.Drawing.Image)
- Me.longlog3.Location = New System.Drawing.Point(400, 200)
- Me.longlog3.Name = "longlog3"
- Me.longlog3.Size = New System.Drawing.Size(300, 50)
- Me.longlog3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
- Me.longlog3.TabIndex = 49
- Me.longlog3.TabStop = False
- '
- 'longlog2
- '
- Me.longlog2.BackColor = System.Drawing.Color.FromArgb(CType(128, Byte), CType(64, Byte), CType(0, Byte))
- Me.longlog2.Image = CType(resources.GetObject("longlog2.Image"), System.Drawing.Image)
- Me.longlog2.Location = New System.Drawing.Point(-100, 200)
- Me.longlog2.Name = "longlog2"
- Me.longlog2.Size = New System.Drawing.Size(300, 50)
- Me.longlog2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
- Me.longlog2.TabIndex = 50
- Me.longlog2.TabStop = False
- '
- 'medlog2
- '
- Me.medlog2.BackColor = System.Drawing.Color.FromArgb(CType(128, Byte), CType(64, Byte), CType(0, Byte))
- Me.medlog2.Location = New System.Drawing.Point(-50, 100)
- Me.medlog2.Name = "medlog2"
- Me.medlog2.Size = New System.Drawing.Size(200, 50)
- Me.medlog2.TabIndex = 51
- Me.medlog2.TabStop = False
- '
- 'medlog3
- '
- Me.medlog3.BackColor = System.Drawing.Color.FromArgb(CType(128, Byte), CType(64, Byte), CType(0, Byte))
- Me.medlog3.Location = New System.Drawing.Point(250, 100)
- Me.medlog3.Name = "medlog3"
- Me.medlog3.Size = New System.Drawing.Size(200, 50)
- Me.medlog3.TabIndex = 52
- Me.medlog3.TabStop = False
- '
- 'medlog4
- '
- Me.medlog4.BackColor = System.Drawing.Color.FromArgb(CType(128, Byte), CType(64, Byte), CType(0, Byte))
- Me.medlog4.Location = New System.Drawing.Point(500, 100)
- Me.medlog4.Name = "medlog4"
- Me.medlog4.Size = New System.Drawing.Size(200, 50)
- Me.medlog4.TabIndex = 53
- Me.medlog4.TabStop = False
- '
- 'safefrog5
- '
- Me.safefrog5.BackColor = System.Drawing.Color.Lime
- Me.safefrog5.Image = CType(resources.GetObject("safefrog5.Image"), System.Drawing.Image)
- Me.safefrog5.Location = New System.Drawing.Point(678, 55)
- Me.safefrog5.Name = "safefrog5"
- Me.safefrog5.Size = New System.Drawing.Size(40, 40)
- Me.safefrog5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
- Me.safefrog5.TabIndex = 54
- Me.safefrog5.TabStop = False
- Me.safefrog5.Visible = False
- '
- 'safefrog4
- '
- Me.safefrog4.BackColor = System.Drawing.Color.Lime
- Me.safefrog4.Image = CType(resources.GetObject("safefrog4.Image"), System.Drawing.Image)
- Me.safefrog4.Location = New System.Drawing.Point(528, 55)
- Me.safefrog4.Name = "safefrog4"
- Me.safefrog4.Size = New System.Drawing.Size(40, 40)
- Me.safefrog4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
- Me.safefrog4.TabIndex = 55
- Me.safefrog4.TabStop = False
- Me.safefrog4.Visible = False
- '
- 'safefrog3
- '
- Me.safefrog3.BackColor = System.Drawing.Color.Lime
- Me.safefrog3.Image = CType(resources.GetObject("safefrog3.Image"), System.Drawing.Image)
- Me.safefrog3.Location = New System.Drawing.Point(378, 55)
- Me.safefrog3.Name = "safefrog3"
- Me.safefrog3.Size = New System.Drawing.Size(40, 40)
- Me.safefrog3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
- Me.safefrog3.TabIndex = 56
- Me.safefrog3.TabStop = False
- Me.safefrog3.Visible = False
- '
- 'safefrog2
- '
- Me.safefrog2.BackColor = System.Drawing.Color.Lime
- Me.safefrog2.Image = CType(resources.GetObject("safefrog2.Image"), System.Drawing.Image)
- Me.safefrog2.Location = New System.Drawing.Point(226, 55)
- Me.safefrog2.Name = "safefrog2"
- Me.safefrog2.Size = New System.Drawing.Size(40, 40)
- Me.safefrog2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
- Me.safefrog2.TabIndex = 57
- Me.safefrog2.TabStop = False
- Me.safefrog2.Visible = False
- '
- 'safefrog1
- '
- Me.safefrog1.BackColor = System.Drawing.Color.Lime
- Me.safefrog1.Image = CType(resources.GetObject("safefrog1.Image"), System.Drawing.Image)
- Me.safefrog1.Location = New System.Drawing.Point(76, 55)
- Me.safefrog1.Name = "safefrog1"
- Me.safefrog1.Size = New System.Drawing.Size(40, 40)
- Me.safefrog1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
- Me.safefrog1.TabIndex = 58
- Me.safefrog1.TabStop = False
- Me.safefrog1.Visible = False
- '
- 'turtle1
- '
- Me.turtle1.BackColor = System.Drawing.Color.Green
- Me.turtle1.Location = New System.Drawing.Point(0, 150)
- Me.turtle1.Name = "turtle1"
- Me.turtle1.Size = New System.Drawing.Size(125, 50)
- Me.turtle1.TabIndex = 59
- Me.turtle1.TabStop = False
- '
- 'turtle4
- '
- Me.turtle4.BackColor = System.Drawing.Color.Green
- Me.turtle4.Location = New System.Drawing.Point(618, 150)
- Me.turtle4.Name = "turtle4"
- Me.turtle4.Size = New System.Drawing.Size(125, 50)
- Me.turtle4.TabIndex = 60
- Me.turtle4.TabStop = False
- '
- 'turtle3
- '
- Me.turtle3.BackColor = System.Drawing.Color.Green
- Me.turtle3.Location = New System.Drawing.Point(412, 150)
- Me.turtle3.Name = "turtle3"
- Me.turtle3.Size = New System.Drawing.Size(125, 50)
- Me.turtle3.TabIndex = 61
- Me.turtle3.TabStop = False
- '
- 'tmrturtle
- '
- Me.tmrturtle.Enabled = True
- Me.tmrturtle.Interval = 50
- '
- 'longturtle1
- '
- Me.longturtle1.BackColor = System.Drawing.Color.Green
- Me.longturtle1.Location = New System.Drawing.Point(0, 300)
- Me.longturtle1.Name = "longturtle1"
- Me.longturtle1.Size = New System.Drawing.Size(170, 50)
- Me.longturtle1.TabIndex = 62
- Me.longturtle1.TabStop = False
- '
- 'longturtle4
- '
- Me.longturtle4.BackColor = System.Drawing.Color.Green
- Me.longturtle4.Location = New System.Drawing.Point(696, 300)
- Me.longturtle4.Name = "longturtle4"
- Me.longturtle4.Size = New System.Drawing.Size(170, 50)
- Me.longturtle4.TabIndex = 63
- Me.longturtle4.TabStop = False
- '
- 'longturtle3
- '
- Me.longturtle3.BackColor = System.Drawing.Color.Green
- Me.longturtle3.Location = New System.Drawing.Point(464, 300)
- Me.longturtle3.Name = "longturtle3"
- Me.longturtle3.Size = New System.Drawing.Size(170, 50)
- Me.longturtle3.TabIndex = 64
- Me.longturtle3.TabStop = False
- '
- 'tmrtimer
- '
- Me.tmrtimer.Enabled = True
- Me.tmrtimer.Interval = 75
- '
- 'timer
- '
- Me.timer.BackColor = System.Drawing.Color.Blue
- Me.timer.Location = New System.Drawing.Point(242, 718)
- Me.timer.Name = "timer"
- Me.timer.Size = New System.Drawing.Size(518, 30)
- Me.timer.TabIndex = 65
- '
- 'Label1
- '
- Me.Label1.BackColor = System.Drawing.Color.Black
- Me.Label1.Font = New System.Drawing.Font("Microsoft Sans Serif", 20.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
- Me.Label1.ForeColor = System.Drawing.Color.White
- Me.Label1.Location = New System.Drawing.Point(158, 718)
- Me.Label1.Name = "Label1"
- Me.Label1.Size = New System.Drawing.Size(85, 30)
- Me.Label1.TabIndex = 66
- Me.Label1.Text = "Time:"
- '
- 'pctfrog2
- '
- Me.pctfrog2.BackColor = System.Drawing.Color.Lime
- Me.pctfrog2.Image = CType(resources.GetObject("pctfrog2.Image"), System.Drawing.Image)
- Me.pctfrog2.Location = New System.Drawing.Point(72, 716)
- Me.pctfrog2.Name = "pctfrog2"
- Me.pctfrog2.Size = New System.Drawing.Size(35, 35)
- Me.pctfrog2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
- Me.pctfrog2.TabIndex = 67
- Me.pctfrog2.TabStop = False
- '
- 'pctfrog1
- '
- Me.pctfrog1.BackColor = System.Drawing.Color.Lime
- Me.pctfrog1.Image = CType(resources.GetObject("pctfrog1.Image"), System.Drawing.Image)
- Me.pctfrog1.Location = New System.Drawing.Point(24, 716)
- Me.pctfrog1.Name = "pctfrog1"
- Me.pctfrog1.Size = New System.Drawing.Size(35, 35)
- Me.pctfrog1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
- Me.pctfrog1.TabIndex = 68
- Me.pctfrog1.TabStop = False
- '
- 'tmrpctfrog21
- '
- Me.tmrpctfrog21.Interval = 1
- '
- 'fren
- '
- Me.fren.BackColor = System.Drawing.Color.Lime
- Me.fren.Location = New System.Drawing.Point(732, 716)
- Me.fren.Name = "fren"
- Me.fren.Size = New System.Drawing.Size(40, 40)
- Me.fren.TabIndex = 70
- Me.fren.TabStop = False
- Me.fren.Visible = False
- '
- 'Label2
- '
- Me.Label2.BackColor = System.Drawing.Color.FromArgb(CType(0, Byte), CType(192, Byte), CType(0, Byte))
- Me.Label2.Location = New System.Drawing.Point(72, 51)
- Me.Label2.Name = "Label2"
- Me.Label2.Size = New System.Drawing.Size(48, 48)
- Me.Label2.TabIndex = 71
- '
- 'Label3
- '
- Me.Label3.BackColor = System.Drawing.Color.FromArgb(CType(0, Byte), CType(192, Byte), CType(0, Byte))
- Me.Label3.Location = New System.Drawing.Point(674, 51)
- Me.Label3.Name = "Label3"
- Me.Label3.Size = New System.Drawing.Size(48, 48)
- Me.Label3.TabIndex = 72
- '
- 'Label4
- '
- Me.Label4.BackColor = System.Drawing.Color.FromArgb(CType(0, Byte), CType(192, Byte), CType(0, Byte))
- Me.Label4.Location = New System.Drawing.Point(524, 51)
- Me.Label4.Name = "Label4"
- Me.Label4.Size = New System.Drawing.Size(48, 48)
- Me.Label4.TabIndex = 73
- '
- 'Label5
- '
- Me.Label5.BackColor = System.Drawing.Color.FromArgb(CType(0, Byte), CType(192, Byte), CType(0, Byte))
- Me.Label5.Location = New System.Drawing.Point(374, 51)
- Me.Label5.Name = "Label5"
- Me.Label5.Size = New System.Drawing.Size(48, 48)
- Me.Label5.TabIndex = 74
- '
- 'Label6
- '
- Me.Label6.BackColor = System.Drawing.Color.FromArgb(CType(0, Byte), CType(192, Byte), CType(0, Byte))
- Me.Label6.Location = New System.Drawing.Point(222, 51)
- Me.Label6.Name = "Label6"
- Me.Label6.Size = New System.Drawing.Size(48, 48)
- Me.Label6.TabIndex = 75
- '
- 'frmFrogger
- '
- Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
- Me.BackColor = System.Drawing.Color.Yellow
- Me.ClientSize = New System.Drawing.Size(784, 762)
- Me.Controls.Add(Me.safefrog2)
- Me.Controls.Add(Me.safefrog3)
- Me.Controls.Add(Me.safefrog4)
- Me.Controls.Add(Me.safefrog5)
- Me.Controls.Add(Me.Label6)
- Me.Controls.Add(Me.Label5)
- Me.Controls.Add(Me.Label4)
- Me.Controls.Add(Me.Label3)
- Me.Controls.Add(Me.safefrog1)
- Me.Controls.Add(Me.Label2)
- Me.Controls.Add(Me.fren)
- Me.Controls.Add(Me.pctfrog1)
- Me.Controls.Add(Me.pctfrog2)
- Me.Controls.Add(Me.Label1)
- Me.Controls.Add(Me.timer)
- Me.Controls.Add(Me.pctFrog)
- Me.Controls.Add(Me.longturtle3)
- Me.Controls.Add(Me.longturtle4)
- Me.Controls.Add(Me.longturtle1)
- Me.Controls.Add(Me.turtle3)
- Me.Controls.Add(Me.turtle4)
- Me.Controls.Add(Me.turtle1)
- Me.Controls.Add(Me.medlog4)
- Me.Controls.Add(Me.medlog3)
- Me.Controls.Add(Me.medlog2)
- Me.Controls.Add(Me.longlog2)
- Me.Controls.Add(Me.longlog3)
- Me.Controls.Add(Me.shortlog2)
- Me.Controls.Add(Me.shortlog3)
- Me.Controls.Add(Me.turtle2)
- Me.Controls.Add(Me.longturtle2)
- Me.Controls.Add(Me.car103)
- Me.Controls.Add(Me.car102)
- Me.Controls.Add(Me.car203)
- Me.Controls.Add(Me.car202)
- Me.Controls.Add(Me.car303)
- Me.Controls.Add(Me.car302)
- Me.Controls.Add(Me.car403)
- Me.Controls.Add(Me.car402)
- Me.Controls.Add(Me.car502)
- Me.Controls.Add(Me.car503)
- Me.Controls.Add(Me.shortlog1)
- Me.Controls.Add(Me.medlog1)
- Me.Controls.Add(Me.longlog1)
- Me.Controls.Add(Me.car101)
- Me.Controls.Add(Me.car201)
- Me.Controls.Add(Me.car301)
- Me.Controls.Add(Me.car401)
- Me.Controls.Add(Me.car501)
- Me.Controls.Add(Me.scorebox)
- Me.Controls.Add(Me.pad3)
- Me.Controls.Add(Me.pad4)
- Me.Controls.Add(Me.pad5)
- Me.Controls.Add(Me.pad2)
- Me.Controls.Add(Me.pad1)
- Me.Controls.Add(Me.unsafe3)
- Me.Controls.Add(Me.safe1)
- Me.Controls.Add(Me.road2)
- Me.Controls.Add(Me.road3)
- Me.Controls.Add(Me.road4)
- Me.Controls.Add(Me.road5)
- Me.Controls.Add(Me.road1)
- Me.Controls.Add(Me.safe2)
- Me.Controls.Add(Me.river2)
- Me.Controls.Add(Me.river3)
- Me.Controls.Add(Me.river4)
- Me.Controls.Add(Me.river5)
- Me.Controls.Add(Me.river1)
- Me.Name = "frmFrogger"
- Me.Text = "Frogger"
- Me.ResumeLayout(False)
- End Sub
- #End Region
- Dim goable As Boolean
- Dim answer As Integer
- Private Sub frmFrogger_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
- goable = True
- shortlog1.Left = shortlog1.Left - 200
- shortlog2.Left = shortlog2.Left - 200
- shortlog3.Left = shortlog3.Left - 200
- medlog1.Left = medlog1.Left - 200
- medlog2.Left = medlog2.Left - 200
- medlog3.Left = medlog3.Left - 200
- longlog1.Left = longlog1.Left - 200
- longlog2.Left = longlog2.Left - 200
- longlog3.Left = longlog3.Left - 200
- turtle1.Left = turtle1.Left + 200
- turtle2.Left = turtle2.Left + 200
- turtle3.Left = turtle3.Left + 200
- longturtle1.Left = longturtle1.Left + 200
- longturtle2.Left = longturtle2.Left + 200
- longturtle3.Left = longturtle3.Left + 200
- car101.Left = car101.Left - 200
- car102.Left = car102.Left - 200
- car103.Left = car103.Left - 200
- car201.Left = car201.Left - 200
- car202.Left = car202.Left - 200
- car203.Left = car203.Left - 200
- car301.Left = car301.Left - 200
- car302.Left = car302.Left - 200
- car303.Left = car303.Left - 200
- car401.Left = car401.Left + 200
- car402.Left = car402.Left + 200
- car403.Left = car403.Left + 200
- car501.Left = car501.Left + 200
- car502.Left = car502.Left + 200
- car503.Left = car503.Left + 200
- End Sub
- Private Sub frmFrogger_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
- 'MsgBox(e.KeyCode)
- If goable = True Then
- If e.KeyCode = 32 Then
- pctFrog.Top = pctFrog.Top - 50
- End If
- If e.KeyCode = 38 Then
- pctFrog.Top = pctFrog.Top - 50
- End If
- If e.KeyCode = 37 And pctFrog.Left > 22 Then
- pctFrog.Left = pctFrog.Left - 50
- End If
- If e.KeyCode = 39 And pctFrog.Left < 722 Then
- pctFrog.Left = pctFrog.Left + 50
- End If
- If e.KeyCode = 40 And pctFrog.Top < 655 Then
- pctFrog.Top = pctFrog.Top + 50
- End If
- End If
- End Sub
- Private Sub tmrCarRight_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmrCarRight.Tick
- car101.Left = car101.Left + 6
- If car101.Left > frmFrogger.ActiveForm.Left + frmFrogger.ActiveForm.Width Then
- car101.Left = -50
- End If
- car102.Left = car102.Left + 6
- If car102.Left > frmFrogger.ActiveForm.Left + frmFrogger.ActiveForm.Width Then
- car102.Left = -50
- End If
- car103.Left = car103.Left + 6
- If car103.Left > frmFrogger.ActiveForm.Left + frmFrogger.ActiveForm.Width Then
- car103.Left = -50
- End If
- '______________________________________________________________________________________
- car301.Left = car301.Left + 5
- If car301.Left > frmFrogger.ActiveForm.Left + frmFrogger.ActiveForm.Width Then
- car301.Left = -50
- End If
- car302.Left = car302.Left + 5
- If car302.Left > frmFrogger.ActiveForm.Left + frmFrogger.ActiveForm.Width Then
- car302.Left = -50
- End If
- car303.Left = car303.Left + 5
- If car303.Left > frmFrogger.ActiveForm.Left + frmFrogger.ActiveForm.Width Then
- car303.Left = -50
- End If
- '_______________________________________________________________________________________
- car501.Left = car501.Left + 4
- If car501.Left > frmFrogger.ActiveForm.Left + frmFrogger.ActiveForm.Width Then
- car501.Left = -50
- End If
- car502.Left = car502.Left + 4
- If car502.Left > frmFrogger.ActiveForm.Left + frmFrogger.ActiveForm.Width Then
- car502.Left = -50
- End If
- car503.Left = car503.Left + 4
- If car503.Left > frmFrogger.ActiveForm.Left + frmFrogger.ActiveForm.Width Then
- car503.Left = -50
- End If
- '______________________________________________________________________________________
- If pctFrog.Bounds.IntersectsWith(car101.Bounds) Then
- newlife()
- End If
- If pctFrog.Bounds.IntersectsWith(car301.Bounds) Then
- newlife()
- End If
- If pctFrog.Bounds.IntersectsWith(car501.Bounds) Then
- newlife()
- End If
- If pctFrog.Bounds.IntersectsWith(car102.Bounds) Then
- newlife()
- End If
- If pctFrog.Bounds.IntersectsWith(car302.Bounds) Then
- newlife()
- End If
- If pctFrog.Bounds.IntersectsWith(car502.Bounds) Then
- newlife()
- End If
- If pctFrog.Bounds.IntersectsWith(car103.Bounds) Then
- newlife()
- End If
- If pctFrog.Bounds.IntersectsWith(car303.Bounds) Then
- newlife()
- End If
- If pctFrog.Bounds.IntersectsWith(car503.Bounds) Then
- newlife()
- End If
- End Sub
- Private Sub tmrCarLeft_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmrCarLeft.Tick
- car201.Left = car201.Left - 10
- If car201.Left < -40 Then
- car201.Left = 850
- End If
- car202.Left = car202.Left - 10
- If car202.Left < -40 Then
- car202.Left = 850
- End If
- car203.Left = car203.Left - 10
- If car203.Left < -40 Then
- car203.Left = 850
- End If
- '______________________________________________________________________________________
- car401.Left = car401.Left - 5
- If car401.Left < -90 Then
- car401.Left = 850
- End If
- car402.Left = car402.Left - 5
- If car402.Left < -90 Then
- car402.Left = 850
- End If
- car403.Left = car403.Left - 5
- If car403.Left < -90 Then
- car403.Left = 850
- End If
- If pctFrog.Bounds.IntersectsWith(car201.Bounds) Then
- newlife()
- End If
- If pctFrog.Bounds.IntersectsWith(car401.Bounds) Then
- newlife()
- End If
- If pctFrog.Bounds.IntersectsWith(car202.Bounds) Then
- newlife()
- End If
- If pctFrog.Bounds.IntersectsWith(car402.Bounds) Then
- newlife()
- End If
- If pctFrog.Bounds.IntersectsWith(car203.Bounds) Then
- newlife()
- End If
- If pctFrog.Bounds.IntersectsWith(car403.Bounds) Then
- newlife()
- End If
- End Sub
- Private Sub tmrlog_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmrlog.Tick
- shortlog1.Left = shortlog1.Left + 3
- If shortlog1.Left > river4.Width Then
- shortlog1.Left = -167
- End If
- shortlog2.Left = shortlog2.Left + 3
- If shortlog2.Left > river4.Width Then
- shortlog2.Left = -167
- End If
- shortlog3.Left = shortlog3.Left + 3
- If shortlog3.Left > river4.Width Then
- shortlog3.Left = -167
- End If
- If pctFrog.Bounds.IntersectsWith(river4.Bounds) Then
- If pctFrog.Bounds.IntersectsWith(shortlog1.Bounds) Or pctFrog.Bounds.IntersectsWith(shortlog2.Bounds) Or pctFrog.Bounds.IntersectsWith(shortlog3.Bounds) Then
- pctFrog.Left = pctFrog.Left + 3
- Else
- newlife()
- End If
- End If
- '______________________________________________________
- longlog1.Left = longlog1.Left + 9
- If longlog1.Left > river3.Width Then
- longlog1.Left = -700
- End If
- longlog2.Left = longlog2.Left + 9
- If longlog2.Left > river3.Width Then
- longlog2.Left = -700
- End If
- longlog3.Left = longlog3.Left + 9
- If longlog3.Left > river3.Width Then
- longlog3.Left = -700
- End If
- If pctFrog.Bounds.IntersectsWith(river3.Bounds) Then
- If pctFrog.Bounds.IntersectsWith(longlog1.Bounds) Or pctFrog.Bounds.IntersectsWith(longlog2.Bounds) Or pctFrog.Bounds.IntersectsWith(longlog3.Bounds) Then
- pctFrog.Left = pctFrog.Left + 9
- Else
- newlife()
- End If
- End If
- '_______________________________________________________________
- medlog1.Left = medlog1.Left + 6
- If medlog1.Left > river1.Width Then
- medlog1.Left = -300
- End If
- medlog2.Left = medlog2.Left + 6
- If medlog2.Left > river1.Width Then
- medlog2.Left = -300
- End If
- medlog3.Left = medlog3.Left + 6
- If medlog3.Left > river1.Width Then
- medlog3.Left = -300
- End If
- medlog4.Left = medlog4.Left + 6
- If medlog4.Left > river1.Width Then
- medlog4.Left = -300
- End If
- If pctFrog.Bounds.IntersectsWith(river1.Bounds) Then
- If pctFrog.Bounds.IntersectsWith(medlog1.Bounds) Or pctFrog.Bounds.IntersectsWith(medlog2.Bounds) Or pctFrog.Bounds.IntersectsWith(medlog3.Bounds) Or pctFrog.Bounds.IntersectsWith(medlog4.Bounds) Then
- pctFrog.Left = pctFrog.Left + 6
- Else
- newlife()
- End If
- End If
- If pctFrog.Left > river1.Width + 150 Then
- pctFrog.Top = 655
- pctFrog.Left = 372
- End If
- '_____________________________________________________________
- If pctFrog.Bounds.IntersectsWith(unsafe3.Bounds) Then
- If pctFrog.Bounds.IntersectsWith(safefrog1.Bounds) Then
- safefrog1.Visible = True
- timer.Width = 518
- pctFrog.Left = 372
- pctFrog.Top = 655
- ElseIf pctFrog.Bounds.IntersectsWith(safefrog2.Bounds) Then
- safefrog2.Visible = True
- timer.Width = 518
- pctFrog.Left = 372
- pctFrog.Top = 655
- ElseIf pctFrog.Bounds.IntersectsWith(safefrog3.Bounds) Then
- safefrog3.Visible = True
- timer.Width = 518
- pctFrog.Left = 372
- pctFrog.Top = 655
- ElseIf pctFrog.Bounds.IntersectsWith(safefrog4.Bounds) Then
- safefrog4.Visible = True
- timer.Width = 518
- pctFrog.Left = 372
- pctFrog.Top = 655
- ElseIf pctFrog.Bounds.IntersectsWith(safefrog5.Bounds) Then
- safefrog5.Visible = True
- timer.Width = 518
- pctFrog.Left = 372
- pctFrog.Top = 655
- Else
- newlife()
- End If
- End If
- If safefrog1.Visible = True And safefrog2.Visible = True And safefrog3.Visible = True And safefrog4.Visible = True And safefrog5.Visible = True Then
- tmrCarLeft.Enabled = False
- tmrCarRight.Enabled = False
- tmrlog.Enabled = False
- tmrturtle.Enabled = False
- tmrtimer.Enabled = False
- answer = MsgBox("GAME OVER, YOU WIN, RESTART?", MsgBoxStyle.YesNo)
- If answer = 6 Then
- Reset()
- End If
- If answer = 7 Then
- Close()
- End If
- End If
- End Sub
- Private Sub tmrturtle_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmrturtle.Tick
- turtle1.Left = turtle1.Left - 3.5
- If turtle1.Left + 125 < river2.Left Then
- turtle1.Left = river2.Width + 400
- End If
- turtle2.Left = turtle2.Left - 3.5
- If turtle2.Left + 125 < river2.Left Then
- turtle2.Left = river2.Width + 400
- End If
- turtle3.Left = turtle3.Left - 3.5
- If turtle3.Left + 125 < river2.Left Then
- turtle3.Left = river2.Width + 400
- End If
- turtle4.Left = turtle4.Left - 3.5
- If turtle4.Left + 125 < river2.Left Then
- turtle4.Left = river2.Width + 400
- End If
- If pctFrog.Bounds.IntersectsWith(river2.Bounds) Then
- If pctFrog.Bounds.IntersectsWith(turtle1.Bounds) Or pctFrog.Bounds.IntersectsWith(turtle2.Bounds) Or pctFrog.Bounds.IntersectsWith(turtle3.Bounds) Or pctFrog.Bounds.IntersectsWith(turtle4.Bounds) Then
- pctFrog.Left = pctFrog.Left - 3.5
- Else
- newlife()
- End If
- End If
- If pctFrog.Left > river2.Width + 150 Then
- pctFrog.Top = 655
- pctFrog.Left = 372
- End If
- '_____________________________________________________
- longturtle1.Left = longturtle1.Left - 3.5
- If longturtle1.Left + 170 < river5.Left Then
- longturtle1.Left = river5.Width + 500
- End If
- longturtle2.Left = longturtle2.Left - 3.5
- If longturtle2.Left + 170 < river5.Left Then
- longturtle2.Left = river5.Width + 500
- End If
- longturtle3.Left = longturtle3.Left - 3.5
- If longturtle3.Left + 170 < river5.Left Then
- longturtle3.Left = river5.Width + 500
- End If
- longturtle4.Left = longturtle4.Left - 3.5
- If longturtle4.Left + 170 < river5.Left Then
- longturtle4.Left = river5.Width + 500
- End If
- If pctFrog.Bounds.IntersectsWith(river5.Bounds) Then
- If pctFrog.Bounds.IntersectsWith(longturtle1.Bounds) Or pctFrog.Bounds.IntersectsWith(longturtle2.Bounds) Or pctFrog.Bounds.IntersectsWith(longturtle3.Bounds) Or pctFrog.Bounds.IntersectsWith(longturtle4.Bounds) Then
- pctFrog.Left = pctFrog.Left - 3.5
- Else
- newlife()
- End If
- End If
- If pctFrog.Left > river5.Width + 150 Then
- pctFrog.Top = 655
- pctFrog.Left = 372
- End If
- End Sub
- Private Sub tmrtimer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmrtimer.Tick
- timer.Width = timer.Width - 1
- frmFrogger.ActiveForm.Text = pctfrog2.Left
- If timer.Width = 0 Then
- newlife()
- End If
- End Sub
- Private Sub tmrpctfrog21up_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmrpctfrog21.Tick
- If pctfrog2.Visible = True Then
- If pctfrog2.Top < 716 Then
- pctfrog2.Width = 40
- pctfrog2.Height = 40
- End If
- If pctfrog2.Top > 655 Then
- pctfrog2.Top = pctfrog2.Top - 1
- End If
- If pctfrog2.Top = 655 And pctfrog2.Left < 372 Then
- pctfrog2.Left = pctfrog2.Left + 4
- End If
- If pctfrog2.Left = 372 Then
- goable = True
- pctFrog.Visible = True
- pctfrog2.Visible = False
- tmrpctfrog21.Enabled = False
- End If
- End If
- If pctfrog2.Visible = False And pctfrog1.Visible = True Then
- If pctfrog1.Top < 716 Then
- pctfrog1.Width = 40
- pctfrog1.Height = 40
- End If
- If pctfrog1.Top > 655 Then
- pctfrog1.Top = pctfrog1.Top - 1
- End If
- If pctfrog1.Top = 655 And pctfrog1.Left < 372 Then
- pctfrog1.Left = pctfrog1.Left + 4
- End If
- If pctfrog1.Left = 372 Then
- goable = True
- pctFrog.Visible = True
- pctfrog1.Visible = False
- tmrpctfrog21.Enabled = False
- End If
- End If
- End Sub
- Private Sub Reset()
- fren.Visible = False
- pctFrog.Visible = True
- pctfrog2.Left = 72
- pctfrog2.Top = 716
- pctfrog1.Left = 24
- pctfrog1.Top = 716
- pctFrog.Left = 372
- pctFrog.Top = 655
- safefrog1.Visible = False
- safefrog2.Visible = False
- safefrog3.Visible = False
- safefrog4.Visible = False
- safefrog5.Visible = False
- medlog1.Left = -300
- medlog2.Left = -50
- medlog3.Left = 250
- medlog4.Left = 500
- turtle1.Left = 0
- turtle2.Left = 206
- turtle3.Left = 412
- turtle4.Left = 618
- longlog1.Left = -600
- longlog2.Left = -100
- longlog3.Left = 400
- shortlog1.Left = 0
- shortlog2.Left = 317
- shortlog3.Left = 624
- longturtle1.Left = 0
- longturtle2.Left = 232
- longturtle3.Left = 464
- longturtle4.Left = 696
- car101.Left = 54
- car102.Left = 232
- car103.Left = 432
- car201.Left = 684
- car202.Left = 380
- car203.Left = 1000
- car301.Left = 52
- car302.Left = 508
- car303.Left = 314
- car401.Left = 662
- car402.Left = 184
- car403.Left = -300
- car501.Left = 52
- car502.Left = 360
- car503.Left = 642
- pctfrog1.Visible = True
- pctfrog2.Visible = True
- timer.Width = 518
- tmrCarLeft.Enabled = True
- tmrCarRight.Enabled = True
- tmrlog.Enabled = True
- tmrturtle.Enabled = True
- tmrtimer.Enabled = True
- End Sub
- Private Sub limbo()
- pctFrog.Left = 372
- pctFrog.Top = 655
- tmrCarLeft.Enabled = False
- tmrCarRight.Enabled = False
- tmrlog.Enabled = False
- tmrturtle.Enabled = False
- tmrtimer.Enabled = False
- answer = MsgBox("GAME OVER, YOU LOSE, RESTART?", MsgBoxStyle.YesNo)
- If answer = 6 Then
- Reset()
- End If
- If answer = 7 Then
- Close()
- End If
- End Sub
- Private Sub newlife()
- timer.Width = 518
- If pctfrog2.Visible = False And pctfrog1.Visible = False Then
- fren.Top = pctFrog.Top
- fren.Left = pctFrog.Left
- fren.Visible = True
- pctFrog.Visible = False
- limbo()
- Else
- goable = False
- pctFrog.Visible = False
- pctFrog.Left = 372
- pctFrog.Top = 655
- tmrpctfrog21.Enabled = True
- End If
- End Sub
- End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement