home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / arvis1 / mainlarg.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1999-10-09  |  56.5 KB  |  1,727 lines

  1. VERSION 5.00
  2. Object = "{27395F88-0C0C-101B-A3C9-08002B2F49FB}#1.1#0"; "PICCLP32.OCX"
  3. Begin VB.Form MainLarge 
  4.    BorderStyle     =   4  'Fixed ToolWindow
  5.    Caption         =   "Quad-Ball By Arvinder Sehmi 1999, Arvinder@Sehmi.Co.Uk"
  6.    ClientHeight    =   8985
  7.    ClientLeft      =   150
  8.    ClientTop       =   405
  9.    ClientWidth     =   12000
  10.    BeginProperty Font 
  11.       Name            =   "Times New Roman"
  12.       Size            =   8.25
  13.       Charset         =   0
  14.       Weight          =   400
  15.       Underline       =   0   'False
  16.       Italic          =   0   'False
  17.       Strikethrough   =   0   'False
  18.    EndProperty
  19.    Icon            =   "MainLarge.frx":0000
  20.    LinkTopic       =   "Form1"
  21.    MaxButton       =   0   'False
  22.    MinButton       =   0   'False
  23.    Moveable        =   0   'False
  24.    ScaleHeight     =   8985
  25.    ScaleWidth      =   12000
  26.    ShowInTaskbar   =   0   'False
  27.    StartUpPosition =   2  'CenterScreen
  28.    Begin VB.PictureBox StatBox 
  29.       Appearance      =   0  'Flat
  30.       AutoSize        =   -1  'True
  31.       BackColor       =   &H00C000C0&
  32.       BorderStyle     =   0  'None
  33.       ForeColor       =   &H80000008&
  34.       Height          =   1350
  35.       Left            =   0
  36.       ScaleHeight     =   1350
  37.       ScaleWidth      =   1095
  38.       TabIndex        =   0
  39.       Top             =   0
  40.       Visible         =   0   'False
  41.       Width           =   1095
  42.       Begin VB.Label Label5 
  43.          BackStyle       =   0  'Transparent
  44.          Caption         =   "Total Score"
  45.          BeginProperty Font 
  46.             Name            =   "Times New Roman"
  47.             Size            =   27.75
  48.             Charset         =   0
  49.             Weight          =   400
  50.             Underline       =   0   'False
  51.             Italic          =   0   'False
  52.             Strikethrough   =   0   'False
  53.          EndProperty
  54.          ForeColor       =   &H0000FF00&
  55.          Height          =   510
  56.          Left            =   900
  57.          TabIndex        =   12
  58.          Top             =   1890
  59.          Width           =   3660
  60.       End
  61.       Begin VB.Label Label6 
  62.          BackStyle       =   0  'Transparent
  63.          Caption         =   "Planet Satatus"
  64.          BeginProperty Font 
  65.             Name            =   "Times New Roman"
  66.             Size            =   27.75
  67.             Charset         =   0
  68.             Weight          =   400
  69.             Underline       =   0   'False
  70.             Italic          =   0   'False
  71.             Strikethrough   =   0   'False
  72.          EndProperty
  73.          ForeColor       =   &H0000FF00&
  74.          Height          =   555
  75.          Left            =   900
  76.          TabIndex        =   11
  77.          Top             =   3015
  78.          Width           =   4110
  79.       End
  80.       Begin VB.Label Label7 
  81.          BackStyle       =   0  'Transparent
  82.          Caption         =   "Top Speed"
  83.          BeginProperty Font 
  84.             Name            =   "Times New Roman"
  85.             Size            =   27.75
  86.             Charset         =   0
  87.             Weight          =   400
  88.             Underline       =   0   'False
  89.             Italic          =   0   'False
  90.             Strikethrough   =   0   'False
  91.          EndProperty
  92.          ForeColor       =   &H0000FF00&
  93.          Height          =   555
  94.          Left            =   900
  95.          TabIndex        =   10
  96.          Top             =   5670
  97.          Width           =   3885
  98.       End
  99.       Begin VB.Label Label8 
  100.          BackStyle       =   0  'Transparent
  101.          Caption         =   "Total Number Of Bounces"
  102.          BeginProperty Font 
  103.             Name            =   "Times New Roman"
  104.             Size            =   27.75
  105.             Charset         =   0
  106.             Weight          =   400
  107.             Underline       =   0   'False
  108.             Italic          =   0   'False
  109.             Strikethrough   =   0   'False
  110.          EndProperty
  111.          ForeColor       =   &H0000FF00&
  112.          Height          =   645
  113.          Left            =   900
  114.          TabIndex        =   9
  115.          Top             =   6750
  116.          Width           =   6180
  117.       End
  118.       Begin VB.Label TotalScore 
  119.          AutoSize        =   -1  'True
  120.          BackStyle       =   0  'Transparent
  121.          Caption         =   "SCORE"
  122.          BeginProperty Font 
  123.             Name            =   "Times New Roman"
  124.             Size            =   36
  125.             Charset         =   0
  126.             Weight          =   700
  127.             Underline       =   0   'False
  128.             Italic          =   0   'False
  129.             Strikethrough   =   0   'False
  130.          EndProperty
  131.          ForeColor       =   &H0000FFFF&
  132.          Height          =   825
  133.          Left            =   4005
  134.          TabIndex        =   8
  135.          Top             =   1755
  136.          Width           =   2490
  137.       End
  138.       Begin VB.Label SavedPlanets 
  139.          AutoSize        =   -1  'True
  140.          BackStyle       =   0  'Transparent
  141.          Caption         =   "Earth"
  142.          BeginProperty Font 
  143.             Name            =   "Times New Roman"
  144.             Size            =   36
  145.             Charset         =   0
  146.             Weight          =   700
  147.             Underline       =   0   'False
  148.             Italic          =   0   'False
  149.             Strikethrough   =   0   'False
  150.          EndProperty
  151.          ForeColor       =   &H0000FFFF&
  152.          Height          =   825
  153.          Index           =   1
  154.          Left            =   4770
  155.          TabIndex        =   7
  156.          Top             =   2970
  157.          Width           =   1785
  158.       End
  159.       Begin VB.Label TopSpeed 
  160.          AutoSize        =   -1  'True
  161.          BackStyle       =   0  'Transparent
  162.          Caption         =   "TopSpeed"
  163.          BeginProperty Font 
  164.             Name            =   "Times New Roman"
  165.             Size            =   36
  166.             Charset         =   0
  167.             Weight          =   700
  168.             Underline       =   0   'False
  169.             Italic          =   0   'False
  170.             Strikethrough   =   0   'False
  171.          EndProperty
  172.          ForeColor       =   &H0000FFFF&
  173.          Height          =   825
  174.          Left            =   4005
  175.          TabIndex        =   6
  176.          Top             =   5490
  177.          Width           =   3090
  178.       End
  179.       Begin VB.Label TotalBounces 
  180.          AutoSize        =   -1  'True
  181.          BackStyle       =   0  'Transparent
  182.          Caption         =   "TotalBounces"
  183.          BeginProperty Font 
  184.             Name            =   "Times New Roman"
  185.             Size            =   36
  186.             Charset         =   0
  187.             Weight          =   700
  188.             Underline       =   0   'False
  189.             Italic          =   0   'False
  190.             Strikethrough   =   0   'False
  191.          EndProperty
  192.          ForeColor       =   &H0000FFFF&
  193.          Height          =   825
  194.          Left            =   7200
  195.          TabIndex        =   5
  196.          Top             =   6615
  197.          Width           =   4185
  198.       End
  199.       Begin VB.Label SavedPlanets 
  200.          AutoSize        =   -1  'True
  201.          BackStyle       =   0  'Transparent
  202.          Caption         =   "Mars"
  203.          BeginProperty Font 
  204.             Name            =   "Times New Roman"
  205.             Size            =   36
  206.             Charset         =   0
  207.             Weight          =   700
  208.             Underline       =   0   'False
  209.             Italic          =   0   'False
  210.             Strikethrough   =   0   'False
  211.          EndProperty
  212.          ForeColor       =   &H0000FFFF&
  213.          Height          =   825
  214.          Index           =   2
  215.          Left            =   4770
  216.          TabIndex        =   4
  217.          Top             =   3735
  218.          Width           =   1635
  219.       End
  220.       Begin VB.Label SavedPlanets 
  221.          AutoSize        =   -1  'True
  222.          BackStyle       =   0  'Transparent
  223.          Caption         =   "Neptune"
  224.          BeginProperty Font 
  225.             Name            =   "Times New Roman"
  226.             Size            =   36
  227.             Charset         =   0
  228.             Weight          =   700
  229.             Underline       =   0   'False
  230.             Italic          =   0   'False
  231.             Strikethrough   =   0   'False
  232.          EndProperty
  233.          ForeColor       =   &H0000FFFF&
  234.          Height          =   825
  235.          Index           =   3
  236.          Left            =   4770
  237.          TabIndex        =   3
  238.          Top             =   4455
  239.          Width           =   2580
  240.       End
  241.       Begin VB.Label Label9 
  242.          AutoSize        =   -1  'True
  243.          BackStyle       =   0  'Transparent
  244.          Caption         =   "Game Statistics"
  245.          BeginProperty Font 
  246.             Name            =   "Times New Roman"
  247.             Size            =   48
  248.             Charset         =   0
  249.             Weight          =   400
  250.             Underline       =   -1  'True
  251.             Italic          =   0   'False
  252.             Strikethrough   =   0   'False
  253.          EndProperty
  254.          ForeColor       =   &H00FFFF00&
  255.          Height          =   1095
  256.          Left            =   900
  257.          TabIndex        =   2
  258.          Top             =   270
  259.          Width           =   5985
  260.       End
  261.       Begin VB.Label OK 
  262.          AutoSize        =   -1  'True
  263.          BackStyle       =   0  'Transparent
  264.          Caption         =   "Continue"
  265.          BeginProperty Font 
  266.             Name            =   "Times New Roman"
  267.             Size            =   36
  268.             Charset         =   0
  269.             Weight          =   700
  270.             Underline       =   0   'False
  271.             Italic          =   0   'False
  272.             Strikethrough   =   0   'False
  273.          EndProperty
  274.          ForeColor       =   &H00008000&
  275.          Height          =   825
  276.          Left            =   8460
  277.          TabIndex        =   1
  278.          Top             =   7650
  279.          Width           =   2805
  280.       End
  281.    End
  282.    Begin VB.PictureBox StoryScreen 
  283.       AutoSize        =   -1  'True
  284.       BackColor       =   &H00FF8080&
  285.       BorderStyle     =   0  'None
  286.       Height          =   2000
  287.       Left            =   0
  288.       ScaleHeight     =   1995
  289.       ScaleWidth      =   1995
  290.       TabIndex        =   13
  291.       Top             =   0
  292.       Visible         =   0   'False
  293.       Width           =   2000
  294.       Begin VB.Label StoryLabel 
  295.          Alignment       =   2  'Center
  296.          Appearance      =   0  'Flat
  297.          AutoSize        =   -1  'True
  298.          BackColor       =   &H80000005&
  299.          BackStyle       =   0  'Transparent
  300.          BeginProperty Font 
  301.             Name            =   "Times New Roman"
  302.             Size            =   20.25
  303.             Charset         =   0
  304.             Weight          =   400
  305.             Underline       =   0   'False
  306.             Italic          =   0   'False
  307.             Strikethrough   =   0   'False
  308.          EndProperty
  309.          ForeColor       =   &H0000FFFF&
  310.          Height          =   2460
  311.          Left            =   0
  312.          TabIndex        =   16
  313.          Top             =   0
  314.          Width           =   12075
  315.          WordWrap        =   -1  'True
  316.       End
  317.       Begin VB.Label Start2 
  318.          Alignment       =   2  'Center
  319.          AutoSize        =   -1  'True
  320.          BackStyle       =   0  'Transparent
  321.          Caption         =   "Start Game"
  322.          BeginProperty Font 
  323.             Name            =   "Times New Roman"
  324.             Size            =   27.75
  325.             Charset         =   0
  326.             Weight          =   400
  327.             Underline       =   0   'False
  328.             Italic          =   0   'False
  329.             Strikethrough   =   0   'False
  330.          EndProperty
  331.          ForeColor       =   &H00008000&
  332.          Height          =   585
  333.          Left            =   1800
  334.          TabIndex        =   15
  335.          Top             =   8145
  336.          Width           =   3225
  337.       End
  338.       Begin VB.Label Quit2 
  339.          Alignment       =   2  'Center
  340.          AutoSize        =   -1  'True
  341.          BackStyle       =   0  'Transparent
  342.          Caption         =   "Quit Game"
  343.          BeginProperty Font 
  344.             Name            =   "Times New Roman"
  345.             Size            =   27.75
  346.             Charset         =   0
  347.             Weight          =   400
  348.             Underline       =   0   'False
  349.             Italic          =   0   'False
  350.             Strikethrough   =   0   'False
  351.          EndProperty
  352.          ForeColor       =   &H00008000&
  353.          Height          =   585
  354.          Left            =   6750
  355.          TabIndex        =   14
  356.          Top             =   8145
  357.          Width           =   2955
  358.       End
  359.    End
  360.    Begin VB.PictureBox TitleScreen 
  361.       Appearance      =   0  'Flat
  362.       AutoSize        =   -1  'True
  363.       BackColor       =   &H0080C0FF&
  364.       BorderStyle     =   0  'None
  365.       BeginProperty Font 
  366.          Name            =   "MS Sans Serif"
  367.          Size            =   8.25
  368.          Charset         =   0
  369.          Weight          =   400
  370.          Underline       =   0   'False
  371.          Italic          =   0   'False
  372.          Strikethrough   =   0   'False
  373.       EndProperty
  374.       ForeColor       =   &H80000008&
  375.       Height          =   8805
  376.       Left            =   0
  377.       ScaleHeight     =   8805
  378.       ScaleWidth      =   7590
  379.       TabIndex        =   45
  380.       Top             =   0
  381.       Width           =   7590
  382.       Begin QuadBall_Story.ArviScroll Scroll 
  383.          Height          =   330
  384.          Left            =   225
  385.          TabIndex        =   46
  386.          Top             =   8550
  387.          Width           =   11490
  388.          _ExtentX        =   20267
  389.          _ExtentY        =   582
  390.          BackColor       =   16777215
  391.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  392.             Name            =   "Terminal"
  393.             Size            =   13.5
  394.             Charset         =   255
  395.             Weight          =   700
  396.             Underline       =   0   'False
  397.             Italic          =   0   'False
  398.             Strikethrough   =   0   'False
  399.          EndProperty
  400.       End
  401.       Begin VB.Label Start 
  402.          Alignment       =   2  'Center
  403.          AutoSize        =   -1  'True
  404.          BackStyle       =   0  'Transparent
  405.          Caption         =   "Start Game"
  406.          BeginProperty Font 
  407.             Name            =   "Times New Roman"
  408.             Size            =   27.75
  409.             Charset         =   0
  410.             Weight          =   400
  411.             Underline       =   0   'False
  412.             Italic          =   0   'False
  413.             Strikethrough   =   0   'False
  414.          EndProperty
  415.          ForeColor       =   &H00008000&
  416.          Height          =   585
  417.          Left            =   6840
  418.          TabIndex        =   51
  419.          Top             =   5040
  420.          Width           =   3225
  421.       End
  422.       Begin VB.Label Quit 
  423.          Alignment       =   2  'Center
  424.          AutoSize        =   -1  'True
  425.          BackStyle       =   0  'Transparent
  426.          Caption         =   "Quit Game"
  427.          BeginProperty Font 
  428.             Name            =   "Times New Roman"
  429.             Size            =   27.75
  430.             Charset         =   0
  431.             Weight          =   400
  432.             Underline       =   0   'False
  433.             Italic          =   0   'False
  434.             Strikethrough   =   0   'False
  435.          EndProperty
  436.          ForeColor       =   &H00008000&
  437.          Height          =   585
  438.          Left            =   6885
  439.          TabIndex        =   50
  440.          Top             =   6705
  441.          Width           =   2955
  442.       End
  443.       Begin VB.Label Story 
  444.          Alignment       =   2  'Center
  445.          AutoSize        =   -1  'True
  446.          BackStyle       =   0  'Transparent
  447.          Caption         =   "Show Story"
  448.          BeginProperty Font 
  449.             Name            =   "Times New Roman"
  450.             Size            =   27.75
  451.             Charset         =   0
  452.             Weight          =   400
  453.             Underline       =   0   'False
  454.             Italic          =   0   'False
  455.             Strikethrough   =   0   'False
  456.          EndProperty
  457.          ForeColor       =   &H00008000&
  458.          Height          =   585
  459.          Left            =   6885
  460.          TabIndex        =   49
  461.          Top             =   5580
  462.          Width           =   3075
  463.       End
  464.       Begin VB.Label Label3 
  465.          Alignment       =   2  'Center
  466.          BackStyle       =   0  'Transparent
  467.          Caption         =   "Quad-Ball Story Mode."
  468.          BeginProperty Font 
  469.             Name            =   "Times New Roman"
  470.             Size            =   26.25
  471.             Charset         =   0
  472.             Weight          =   700
  473.             Underline       =   0   'False
  474.             Italic          =   0   'False
  475.             Strikethrough   =   0   'False
  476.          EndProperty
  477.          ForeColor       =   &H0000FF00&
  478.          Height          =   555
  479.          Left            =   225
  480.          TabIndex        =   48
  481.          Top             =   7830
  482.          Width           =   11490
  483.       End
  484.       Begin VB.Label TrainingMode 
  485.          Alignment       =   2  'Center
  486.          AutoSize        =   -1  'True
  487.          BackStyle       =   0  'Transparent
  488.          Caption         =   "Play In Training Mode"
  489.          BeginProperty Font 
  490.             Name            =   "Times New Roman"
  491.             Size            =   27.75
  492.             Charset         =   0
  493.             Weight          =   400
  494.             Underline       =   0   'False
  495.             Italic          =   0   'False
  496.             Strikethrough   =   0   'False
  497.          EndProperty
  498.          ForeColor       =   &H00008000&
  499.          Height          =   630
  500.          Left            =   5940
  501.          TabIndex        =   47
  502.          Top             =   6165
  503.          Width           =   4965
  504.       End
  505.    End
  506.    Begin VB.PictureBox Area 
  507.       Appearance      =   0  'Flat
  508.       BackColor       =   &H00C0FFFF&
  509.       BorderStyle     =   0  'None
  510.       DrawWidth       =   2
  511.       ForeColor       =   &H000000FF&
  512.       Height          =   9075
  513.       Left            =   0
  514.       MouseIcon       =   "MainLarge.frx":09BA
  515.       MousePointer    =   99  'Custom
  516.       ScaleHeight     =   9075
  517.       ScaleWidth      =   10320
  518.       TabIndex        =   34
  519.       Top             =   0
  520.       Visible         =   0   'False
  521.       Width           =   10320
  522.       Begin VB.PictureBox Ball 
  523.          Appearance      =   0  'Flat
  524.          AutoRedraw      =   -1  'True
  525.          AutoSize        =   -1  'True
  526.          BackColor       =   &H00000000&
  527.          BorderStyle     =   0  'None
  528.          DrawStyle       =   1  'Dash
  529.          Enabled         =   0   'False
  530.          FillColor       =   &H0000FFFF&
  531.          ForeColor       =   &H80000008&
  532.          Height          =   375
  533.          Left            =   5085
  534.          ScaleHeight     =   375
  535.          ScaleWidth      =   375
  536.          TabIndex        =   39
  537.          Top             =   4455
  538.          Width           =   375
  539.       End
  540.       Begin VB.PictureBox TPad 
  541.          Appearance      =   0  'Flat
  542.          AutoSize        =   -1  'True
  543.          BackColor       =   &H00000000&
  544.          BorderStyle     =   0  'None
  545.          ForeColor       =   &H80000008&
  546.          Height          =   330
  547.          Left            =   0
  548.          ScaleHeight     =   330
  549.          ScaleWidth      =   2085
  550.          TabIndex        =   38
  551.          Tag             =   "Top"
  552.          Top             =   0
  553.          Width           =   2085
  554.       End
  555.       Begin VB.PictureBox BPad 
  556.          Appearance      =   0  'Flat
  557.          AutoSize        =   -1  'True
  558.          BackColor       =   &H00000000&
  559.          BorderStyle     =   0  'None
  560.          ForeColor       =   &H80000008&
  561.          Height          =   330
  562.          Left            =   0
  563.          ScaleHeight     =   330
  564.          ScaleWidth      =   2085
  565.          TabIndex        =   37
  566.          Tag             =   "Top"
  567.          Top             =   8685
  568.          Width           =   2085
  569.       End
  570.       Begin VB.PictureBox LPad 
  571.          Appearance      =   0  'Flat
  572.          AutoSize        =   -1  'True
  573.          BackColor       =   &H00000000&
  574.          BorderStyle     =   0  'None
  575.          ForeColor       =   &H80000008&
  576.          Height          =   2085
  577.          Left            =   0
  578.          ScaleHeight     =   2085
  579.          ScaleWidth      =   330
  580.          TabIndex        =   36
  581.          Tag             =   "Side"
  582.          Top             =   0
  583.          Width           =   330
  584.       End
  585.       Begin VB.PictureBox RPad 
  586.          Appearance      =   0  'Flat
  587.          AutoSize        =   -1  'True
  588.          BackColor       =   &H00000000&
  589.          BorderStyle     =   0  'None
  590.          ForeColor       =   &H80000008&
  591.          Height          =   2085
  592.          Left            =   9990
  593.          ScaleHeight     =   2085
  594.          ScaleWidth      =   330
  595.          TabIndex        =   35
  596.          Tag             =   "Side"
  597.          Top             =   45
  598.          Width           =   330
  599.       End
  600.       Begin PicClip.PictureClip AniBall 
  601.          Left            =   2160
  602.          Top             =   2205
  603.          _ExtentX        =   2646
  604.          _ExtentY        =   1323
  605.          _Version        =   393216
  606.          Rows            =   2
  607.          Cols            =   4
  608.       End
  609.       Begin PicClip.PictureClip BallBlow 
  610.          Left            =   2025
  611.          Top             =   3375
  612.          _ExtentX        =   5292
  613.          _ExtentY        =   5080
  614.          _Version        =   393216
  615.          Rows            =   4
  616.          Cols            =   4
  617.       End
  618.       Begin VB.Shape Limit 
  619.          BackColor       =   &H00000000&
  620.          BorderColor     =   &H0000FF00&
  621.          Height          =   8370
  622.          Left            =   360
  623.          Top             =   315
  624.          Visible         =   0   'False
  625.          Width           =   9675
  626.       End
  627.       Begin VB.Label GameStory 
  628.          Alignment       =   2  'Center
  629.          AutoSize        =   -1  'True
  630.          BackStyle       =   0  'Transparent
  631.          BeginProperty Font 
  632.             Name            =   "Times New Roman"
  633.             Size            =   15.75
  634.             Charset         =   0
  635.             Weight          =   400
  636.             Underline       =   0   'False
  637.             Italic          =   0   'False
  638.             Strikethrough   =   0   'False
  639.          EndProperty
  640.          ForeColor       =   &H0000FF00&
  641.          Height          =   2085
  642.          Left            =   2895
  643.          TabIndex        =   40
  644.          Top             =   3555
  645.          Width           =   5970
  646.          WordWrap        =   -1  'True
  647.       End
  648.    End
  649.    Begin VB.PictureBox Info 
  650.       Align           =   4  'Align Right
  651.       Appearance      =   0  'Flat
  652.       BackColor       =   &H0000C0C0&
  653.       ForeColor       =   &H80000008&
  654.       Height          =   8985
  655.       Left            =   10320
  656.       ScaleHeight     =   8955
  657.       ScaleWidth      =   1650
  658.       TabIndex        =   17
  659.       Top             =   0
  660.       Width           =   1680
  661.       Begin VB.Timer TimeKeeper 
  662.          Enabled         =   0   'False
  663.          Interval        =   900
  664.          Left            =   1260
  665.          Top             =   3690
  666.       End
  667.       Begin VB.Label Reset 
  668.          Alignment       =   2  'Center
  669.          AutoSize        =   -1  'True
  670.          BackStyle       =   0  'Transparent
  671.          Caption         =   "Reset"
  672.          BeginProperty Font 
  673.             Name            =   "Times New Roman"
  674.             Size            =   20.25
  675.             Charset         =   0
  676.             Weight          =   700
  677.             Underline       =   0   'False
  678.             Italic          =   0   'False
  679.             Strikethrough   =   0   'False
  680.          EndProperty
  681.          ForeColor       =   &H00008000&
  682.          Height          =   435
  683.          Left            =   225
  684.          TabIndex        =   29
  685.          Tag             =   "no"
  686.          Top             =   5895
  687.          Width           =   1185
  688.       End
  689.       Begin VB.Image InfoArea 
  690.          Height          =   9075
  691.          Left            =   -45
  692.          Stretch         =   -1  'True
  693.          Top             =   -45
  694.          Width           =   1770
  695.       End
  696.       Begin VB.Image Life 
  697.          Height          =   375
  698.          Index           =   2
  699.          Left            =   630
  700.          Top             =   2610
  701.          Width           =   375
  702.       End
  703.       Begin VB.Shape Shape2 
  704.          BorderColor     =   &H00FF80FF&
  705.          Height          =   960
  706.          Left            =   90
  707.          Top             =   3240
  708.          Width           =   1410
  709.       End
  710.       Begin VB.Label LYLabel 
  711.          Alignment       =   2  'Center
  712.          BackStyle       =   0  'Transparent
  713.          Caption         =   "LY"
  714.          BeginProperty Font 
  715.             Name            =   "Times New Roman"
  716.             Size            =   15.75
  717.             Charset         =   0
  718.             Weight          =   400
  719.             Underline       =   0   'False
  720.             Italic          =   0   'False
  721.             Strikethrough   =   0   'False
  722.          EndProperty
  723.          ForeColor       =   &H00FFFF00&
  724.          Height          =   330
  725.          Left            =   1080
  726.          TabIndex        =   33
  727.          Top             =   3870
  728.          Width           =   375
  729.       End
  730.       Begin VB.Label CommetSpeed 
  731.          Alignment       =   1  'Right Justify
  732.          BackStyle       =   0  'Transparent
  733.          Caption         =   "0"
  734.          BeginProperty Font 
  735.             Name            =   "Times New Roman"
  736.             Size            =   15.75
  737.             Charset         =   0
  738.             Weight          =   400
  739.             Underline       =   0   'False
  740.             Italic          =   0   'False
  741.             Strikethrough   =   0   'False
  742.          EndProperty
  743.          ForeColor       =   &H000000FF&
  744.          Height          =   330
  745.          Left            =   45
  746.          TabIndex        =   32
  747.          Top             =   3870
  748.          Width           =   1005
  749.       End
  750.       Begin VB.Label CometSpeedLab 
  751.          Alignment       =   2  'Center
  752.          Appearance      =   0  'Flat
  753.          BackColor       =   &H80000005&
  754.          BackStyle       =   0  'Transparent
  755.          Caption         =   "Comet Speed"
  756.          BeginProperty Font 
  757.             Name            =   "Times New Roman"
  758.             Size            =   14.25
  759.             Charset         =   0
  760.             Weight          =   400
  761.             Underline       =   0   'False
  762.             Italic          =   0   'False
  763.             Strikethrough   =   0   'False
  764.          EndProperty
  765.          ForeColor       =   &H0000FFFF&
  766.          Height          =   645
  767.          Left            =   45
  768.          TabIndex        =   31
  769.          Top             =   3240
  770.          Width           =   1455
  771.          WordWrap        =   -1  'True
  772.       End
  773.       Begin VB.Shape Shape1 
  774.          BorderColor     =   &H00FFFFFF&
  775.          Height          =   825
  776.          Left            =   90
  777.          Top             =   90
  778.          Width           =   1410
  779.       End
  780.       Begin VB.Label PlanetsLabel 
  781.          Alignment       =   2  'Center
  782.          Appearance      =   0  'Flat
  783.          BackColor       =   &H80000005&
  784.          BackStyle       =   0  'Transparent
  785.          Caption         =   "Planets"
  786.          BeginProperty Font 
  787.             Name            =   "Times New Roman"
  788.             Size            =   15.75
  789.             Charset         =   0
  790.             Weight          =   400
  791.             Underline       =   0   'False
  792.             Italic          =   0   'False
  793.             Strikethrough   =   0   'False
  794.          EndProperty
  795.          ForeColor       =   &H0000FFFF&
  796.          Height          =   420
  797.          Left            =   90
  798.          TabIndex        =   30
  799.          Top             =   2115
  800.          Width           =   1410
  801.       End
  802.       Begin VB.Shape PlanetsBox 
  803.          BorderColor     =   &H00FF8080&
  804.          Height          =   1050
  805.          Left            =   90
  806.          Top             =   2115
  807.          Width           =   1410
  808.       End
  809.       Begin VB.Image Life 
  810.          Height          =   375
  811.          Index           =   3
  812.          Left            =   180
  813.          Top             =   2610
  814.          Width           =   375
  815.       End
  816.       Begin VB.Image Life 
  817.          Height          =   375
  818.          Index           =   1
  819.          Left            =   1080
  820.          Top             =   2610
  821.          Width           =   375
  822.       End
  823.       Begin VB.Label AimTime 
  824.          Alignment       =   2  'Center
  825.          BackStyle       =   0  'Transparent
  826.          Caption         =   "00:00:00"
  827.          BeginProperty Font 
  828.             Name            =   "Times New Roman"
  829.             Size            =   12
  830.             Charset         =   0
  831.             Weight          =   700
  832.             Underline       =   0   'False
  833.             Italic          =   0   'False
  834.             Strikethrough   =   0   'False
  835.          EndProperty
  836.          ForeColor       =   &H000000FF&
  837.          Height          =   420
  838.          Left            =   90
  839.          TabIndex        =   28
  840.          Top             =   1710
  841.          Width           =   1410
  842.       End
  843.       Begin VB.Label TimeSoFar 
  844.          Alignment       =   2  'Center
  845.          BackStyle       =   0  'Transparent
  846.          Caption         =   "00:00:00"
  847.          BeginProperty Font 
  848.             Name            =   "Times New Roman"
  849.             Size            =   12
  850.             Charset         =   0
  851.             Weight          =   700
  852.             Underline       =   0   'False
  853.             Italic          =   0   'False
  854.             Strikethrough   =   0   'False
  855.          EndProperty
  856.          ForeColor       =   &H000000FF&
  857.          Height          =   420
  858.          Left            =   90
  859.          TabIndex        =   27
  860.          Top             =   1395
  861.          Width           =   1410
  862.       End
  863.       Begin VB.Label TimeLabel 
  864.          Alignment       =   2  'Center
  865.          Appearance      =   0  'Flat
  866.          BackColor       =   &H80000005&
  867.          BackStyle       =   0  'Transparent
  868.          Caption         =   "Time"
  869.          BeginProperty Font 
  870.             Name            =   "Times New Roman"
  871.             Size            =   15.75
  872.             Charset         =   0
  873.             Weight          =   400
  874.             Underline       =   0   'False
  875.             Italic          =   0   'False
  876.             Strikethrough   =   0   'False
  877.          EndProperty
  878.          ForeColor       =   &H0000FFFF&
  879.          Height          =   420
  880.          Left            =   90
  881.          TabIndex        =   26
  882.          Top             =   990
  883.          Width           =   1410
  884.       End
  885.       Begin VB.Shape TimeBox 
  886.          BackColor       =   &H0000FF00&
  887.          BorderColor     =   &H0000FF00&
  888.          Height          =   1050
  889.          Left            =   90
  890.          Top             =   990
  891.          Width           =   1410
  892.       End
  893.       Begin VB.Label Score 
  894.          Alignment       =   2  'Center
  895.          BackStyle       =   0  'Transparent
  896.          Caption         =   "0"
  897.          BeginProperty Font 
  898.             Name            =   "Times New Roman"
  899.             Size            =   20.25
  900.             Charset         =   0
  901.             Weight          =   700
  902.             Underline       =   0   'False
  903.             Italic          =   0   'False
  904.             Strikethrough   =   0   'False
  905.          EndProperty
  906.          ForeColor       =   &H000000FF&
  907.          Height          =   465
  908.          Left            =   90
  909.          TabIndex        =   25
  910.          Top             =   450
  911.          Width           =   1410
  912.       End
  913.       Begin VB.Label ScoreLable 
  914.          Alignment       =   2  'Center
  915.          Appearance      =   0  'Flat
  916.          BackColor       =   &H80000005&
  917.          BackStyle       =   0  'Transparent
  918.          Caption         =   "Score"
  919.          BeginProperty Font 
  920.             Name            =   "Times New Roman"
  921.             Size            =   15.75
  922.             Charset         =   0
  923.             Weight          =   400
  924.             Underline       =   0   'False
  925.             Italic          =   0   'False
  926.             Strikethrough   =   0   'False
  927.          EndProperty
  928.          ForeColor       =   &H0000FFFF&
  929.          Height          =   420
  930.          Left            =   90
  931.          TabIndex        =   24
  932.          Top             =   90
  933.          Width           =   1410
  934.       End
  935.       Begin VB.Shape ScoreBox 
  936.          Height          =   825
  937.          Left            =   90
  938.          Top             =   -5000
  939.          Width           =   1410
  940.       End
  941.       Begin VB.Label LifeTxt 
  942.          Alignment       =   2  'Center
  943.          BackStyle       =   0  'Transparent
  944.          BeginProperty Font 
  945.             Name            =   "Times New Roman"
  946.             Size            =   13.5
  947.             Charset         =   0
  948.             Weight          =   700
  949.             Underline       =   0   'False
  950.             Italic          =   0   'False
  951.             Strikethrough   =   0   'False
  952.          EndProperty
  953.          ForeColor       =   &H000000FF&
  954.          Height          =   330
  955.          Index           =   3
  956.          Left            =   90
  957.          TabIndex        =   23
  958.          Top             =   2610
  959.          Width           =   510
  960.       End
  961.       Begin VB.Label LifeTxt 
  962.          Alignment       =   2  'Center
  963.          BackStyle       =   0  'Transparent
  964.          BeginProperty Font 
  965.             Name            =   "Times New Roman"
  966.             Size            =   13.5
  967.             Charset         =   0
  968.             Weight          =   700
  969.             Underline       =   0   'False
  970.             Italic          =   0   'False
  971.             Strikethrough   =   0   'False
  972.          EndProperty
  973.          ForeColor       =   &H0000FF00&
  974.          Height          =   330
  975.          Index           =   2
  976.          Left            =   585
  977.          TabIndex        =   22
  978.          Top             =   2610
  979.          Width           =   510
  980.       End
  981.       Begin VB.Label LifeTxt 
  982.          Alignment       =   2  'Center
  983.          BackStyle       =   0  'Transparent
  984.          BeginProperty Font 
  985.             Name            =   "Times New Roman"
  986.             Size            =   13.5
  987.             Charset         =   0
  988.             Weight          =   700
  989.             Underline       =   0   'False
  990.             Italic          =   0   'False
  991.             Strikethrough   =   0   'False
  992.          EndProperty
  993.          ForeColor       =   &H0000FFFF&
  994.          Height          =   330
  995.          Index           =   1
  996.          Left            =   1035
  997.          TabIndex        =   21
  998.          Top             =   2610
  999.          Width           =   510
  1000.       End
  1001.       Begin VB.Shape Shape4 
  1002.          BorderColor     =   &H00FFFF00&
  1003.          Height          =   1320
  1004.          Left            =   90
  1005.          Top             =   4275
  1006.          Width           =   1455
  1007.       End
  1008.       Begin VB.Label Label2 
  1009.          Alignment       =   2  'Center
  1010.          Appearance      =   0  'Flat
  1011.          BackColor       =   &H80000005&
  1012.          BackStyle       =   0  'Transparent
  1013.          Caption         =   "High Score"
  1014.          BeginProperty Font 
  1015.             Name            =   "Times New Roman"
  1016.             Size            =   14.25
  1017.             Charset         =   0
  1018.             Weight          =   400
  1019.             Underline       =   0   'False
  1020.             Italic          =   0   'False
  1021.             Strikethrough   =   0   'False
  1022.          EndProperty
  1023.          ForeColor       =   &H0000FFFF&
  1024.          Height          =   375
  1025.          Left            =   90
  1026.          TabIndex        =   20
  1027.          Top             =   4275
  1028.          Width           =   1455
  1029.          WordWrap        =   -1  'True
  1030.       End
  1031.       Begin VB.Label HighestScore 
  1032.          Alignment       =   2  'Center
  1033.          BackStyle       =   0  'Transparent
  1034.          Caption         =   "000000"
  1035.          BeginProperty Font 
  1036.             Name            =   "Times New Roman"
  1037.             Size            =   20.25
  1038.             Charset         =   0
  1039.             Weight          =   700
  1040.             Underline       =   0   'False
  1041.             Italic          =   0   'False
  1042.             Strikethrough   =   0   'False
  1043.          EndProperty
  1044.          ForeColor       =   &H0000FF00&
  1045.          Height          =   465
  1046.          Left            =   90
  1047.          TabIndex        =   19
  1048.          Top             =   4545
  1049.          Width           =   1455
  1050.       End
  1051.       Begin VB.Label HighName 
  1052.          Alignment       =   2  'Center
  1053.          BackStyle       =   0  'Transparent
  1054.          BeginProperty Font 
  1055.             Name            =   "Times New Roman"
  1056.             Size            =   14.25
  1057.             Charset         =   0
  1058.             Weight          =   700
  1059.             Underline       =   0   'False
  1060.             Italic          =   0   'False
  1061.             Strikethrough   =   0   'False
  1062.          EndProperty
  1063.          ForeColor       =   &H000080FF&
  1064.          Height          =   600
  1065.          Left            =   90
  1066.          TabIndex        =   18
  1067.          Top             =   4950
  1068.          Width           =   1455
  1069.       End
  1070.    End
  1071.    Begin VB.PictureBox KillEarth 
  1072.       AutoSize        =   -1  'True
  1073.       BackColor       =   &H008080FF&
  1074.       BorderStyle     =   0  'None
  1075.       Height          =   6000
  1076.       Left            =   0
  1077.       ScaleHeight     =   6000
  1078.       ScaleWidth      =   6495
  1079.       TabIndex        =   41
  1080.       Top             =   0
  1081.       Width           =   6495
  1082.       Begin QuadBall_Story.EarthBlow1 BlowUpEarth 
  1083.          Height          =   1380
  1084.          Left            =   450
  1085.          TabIndex        =   42
  1086.          Top             =   810
  1087.          Width           =   1530
  1088.          _ExtentX        =   2699
  1089.          _ExtentY        =   2434
  1090.       End
  1091.       Begin VB.PictureBox KillBall 
  1092.          Appearance      =   0  'Flat
  1093.          AutoRedraw      =   -1  'True
  1094.          AutoSize        =   -1  'True
  1095.          BackColor       =   &H00000000&
  1096.          BorderStyle     =   0  'None
  1097.          DrawStyle       =   1  'Dash
  1098.          Enabled         =   0   'False
  1099.          FillColor       =   &H0000FFFF&
  1100.          ForeColor       =   &H80000008&
  1101.          Height          =   375
  1102.          Left            =   0
  1103.          ScaleHeight     =   375
  1104.          ScaleWidth      =   375
  1105.          TabIndex        =   43
  1106.          Top             =   0
  1107.          Width           =   375
  1108.       End
  1109.       Begin VB.Label GameStory2 
  1110.          Alignment       =   2  'Center
  1111.          AutoSize        =   -1  'True
  1112.          BackStyle       =   0  'Transparent
  1113.          BeginProperty Font 
  1114.             Name            =   "Times New Roman"
  1115.             Size            =   15.75
  1116.             Charset         =   0
  1117.             Weight          =   400
  1118.             Underline       =   0   'False
  1119.             Italic          =   0   'False
  1120.             Strikethrough   =   0   'False
  1121.          EndProperty
  1122.          ForeColor       =   &H0000FF00&
  1123.          Height          =   2085
  1124.          Left            =   3150
  1125.          TabIndex        =   44
  1126.          Top             =   3375
  1127.          Width           =   5970
  1128.          WordWrap        =   -1  'True
  1129.       End
  1130.    End
  1131. Attribute VB_Name = "MainLarge"
  1132. Attribute VB_GlobalNameSpace = False
  1133. Attribute VB_Creatable = False
  1134. Attribute VB_PredeclaredId = True
  1135. Attribute VB_Exposed = False
  1136. ' TO SEE DOCUMENTATION ON WHAT THESE SUBS DO,   '
  1137. ' GOTO "MainSmall", As This Code Is Very Similar'
  1138. ' And As Only Been Slightly Adjusted To Work    '
  1139. ' On Displays Larger Than 800x600               '
  1140. '_______________________________________________'
  1141. Dim ExitBounce As Boolean
  1142. Dim StartTime As Date
  1143. Private Sub TrainingMode_Click()
  1144.  On Error GoTo a:
  1145.  ThisDir
  1146.  Shell "QuadBall_Training.Exe " & Trim(Str(CmdSpeedParam)), vbNormalFocus
  1147.  Reset_Click
  1148.  Unload Me
  1149. MsgBox "Cannot Find QuadBall_Training.Exe," & Chr(13) & "Please Re-install This Game To Fix The Problem." & Chr(13) & _
  1150.         "If You Can Find QuadBall_Training.exe On Your PC," & Chr(13) & "Please Place It In The Directory:" & Chr(13) & _
  1151.         App.Path, vbCritical, "Error"
  1152. End Sub
  1153. Private Sub TrainingMode_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1154.  UnHighlight Start
  1155.  Highlight TrainingMode
  1156.  UnHighlight Quit
  1157.  UnHighlight Story
  1158. End Sub
  1159. Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
  1160.  Reset_Click
  1161.  Call StopSounds(True, True)
  1162.  ExitBounce = True
  1163.  Call StopSounds(True, True)
  1164. End Sub
  1165. Private Sub Form_Unload(Cancel As Integer)
  1166.  Call StopSounds(True, True)
  1167. End Sub
  1168. Private Sub GameStory_Change()
  1169. With GameStory
  1170.  .Left = Int(Me.Width - Info.Width) / 2
  1171.  .Top = Int(Me.Height / 2)
  1172.  .Left = .Left - Int(.Width / 2)
  1173.  .Top = .Top - Int(.Height / 2)
  1174.  .Refresh
  1175. End With
  1176. End Sub
  1177. Private Sub Info_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1178.  UnHighlight Reset
  1179. End Sub
  1180. Private Sub InfoArea_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1181.  X = Int(Area.Width - (BPad.Width / 2))
  1182.  Call Area_MouseMove(Button, Shift, X, Y)
  1183. End Sub
  1184. Private Sub OK_Click()
  1185.  Reset_Click
  1186.  StatBox.Visible = False
  1187. End Sub
  1188. Private Sub OK_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1189.  Highlight OK
  1190. End Sub
  1191. Private Sub Quit_Click()
  1192.  ExitBounce = True
  1193.  WAVPlay "exit.qbs"
  1194.  Unload Me
  1195. End Sub
  1196. Private Sub Quit2_Click()
  1197.  Call Quit_Click
  1198. End Sub
  1199. Public Sub CentreBall()
  1200.  Ball.Visible = False
  1201.  Ball.Top = Int((Me.Height + Ball.Height) / 2)
  1202.  Ball.Left = Int(Int((Area.Width - Info.Width) / 2) - Int(Ball.Width / 2))
  1203. End Sub
  1204. Private Sub Reset_Click()
  1205.  WAVPlay "exit.qbs"
  1206.  ExitBounce = True
  1207.  ExitBounce = True
  1208.  CentreBall
  1209.  TitleScreen.Visible = True
  1210.  Scroll.StartScroll
  1211.  Area.Visible = False
  1212.  LifeTxt(1).caption = ""
  1213.  LifeTxt(2).caption = ""
  1214.  LifeTxt(3).caption = ""
  1215.  LivesLeft = 3
  1216.  XSpeed = CmdSpeedParam
  1217.  YSpeed = CmdSpeedParam
  1218.  For i = 1 To 3
  1219.   Life(1).Visible = True
  1220.  Next i
  1221.  TimeSoFar = "00:00:00"
  1222.  AimTime = "00:00:00"
  1223.  Score = "0"
  1224. End Sub
  1225. Private Sub Reset_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1226.  Highlight Reset
  1227. End Sub
  1228. Private Sub Start_Click()
  1229.  WAVPlay "start.qbs"
  1230.  Area.Visible = True
  1231.  Area.Cls
  1232.  TitleScreen.Visible = False
  1233.  Scroll.ExitScroll
  1234.  LoadScore
  1235.  LivesLeft = 3
  1236.  XSpeed = CmdSpeedParam
  1237.  YSpeed = CmdSpeedParam
  1238.   For i = 1 To 3
  1239.    Life(i).Visible = True
  1240.    LifeTxt(i).caption = ""
  1241.   Next i
  1242.  TimeSoFar = "00:00:00"
  1243.  AimTime = "00:00:25"
  1244.  Score = "0"
  1245.  Ball.Visible = False
  1246.  GameStory = "Your First Mission Is To Save neptune!" & Chr(13) & " Your Target Time is 0.25 Minuets"
  1247.  Delay 1.5
  1248.  GameStory = "Ready"
  1249.  Delay 0.8
  1250.  GameStory = "GO!"
  1251.  Delay 0.6
  1252.  GameStory = ""
  1253.  Ball.Visible = True
  1254.  ExitBounce = False
  1255.  Bounce
  1256. End Sub
  1257. Private Sub Start2_Click()
  1258.  StoryScreen.Visible = False
  1259.  Call Start_Click
  1260. End Sub
  1261. Private Sub Start_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1262.  UnHighlight TrainingMode
  1263.  UnHighlight Story
  1264.  UnHighlight Quit
  1265.  Highlight Start
  1266. End Sub
  1267. Private Sub Start2_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1268.  UnHighlight Quit2
  1269.  Highlight Start2
  1270. End Sub
  1271. Private Sub Quit_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1272.  UnHighlight TrainingMode
  1273.  UnHighlight Story
  1274.  UnHighlight Start
  1275.  Highlight Quit
  1276. End Sub
  1277. Private Sub Quit2_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1278.  UnHighlight Start2
  1279.  Highlight Quit2
  1280. End Sub
  1281. Private Sub ShowStats()
  1282. TotalScore = Val(Score)
  1283. TopSpeed = FastSpeed
  1284. TotalBounces = NumBounces
  1285.  If LifeTxt(3).caption = "OK" Then
  1286.   SavedPlanets(3).caption = "Neptune: Saved!"
  1287.  Else
  1288.   SavedPlanets(3).caption = "Neptune: Destroyed!"
  1289.  End If
  1290.  If LifeTxt(2).caption = "OK" Then
  1291.   SavedPlanets(2).caption = "Mars: Saved!"
  1292.  Else
  1293.   SavedPlanets(2).caption = "Mars: Destroyed!"
  1294.  End If
  1295.  If LifeTxt(1).caption = "OK" Then
  1296.   SavedPlanets(1).caption = "Earth: Saved!"
  1297.  Else
  1298.   SavedPlanets(1).caption = "Earth: Destroyed!"
  1299.  End If
  1300. StatBox.Visible = True
  1301.  If TotalScore > Val(GetKeyValue(HKEY_LOCAL_MACHINE, _
  1302.   "SOFTWARE\arvisehmi\QuadBall", "TopScore")) Then
  1303.   On Error Resume Next
  1304.   InputWindow.Visible = True
  1305.  End If
  1306. End Sub
  1307. Private Sub StatBox_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1308.  UnHighlight OK
  1309. End Sub
  1310. Private Sub totalbounces_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1311.  UnHighlight OK
  1312. End Sub
  1313. Private Sub label8_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1314.  UnHighlight OK
  1315. End Sub
  1316. Private Sub Story_Click()
  1317.  LoadStoryString
  1318.  StoryScreen.Visible = True
  1319. End Sub
  1320. Private Sub Story_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1321.  UnHighlight TrainingMode
  1322.  UnHighlight Start
  1323.  UnHighlight Quit
  1324.  Highlight Story
  1325. End Sub
  1326. Private Sub StoryLabel_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1327.  UnHighlight Quit2
  1328.  UnHighlight Start2
  1329. End Sub
  1330. Private Sub TimeKeeper_Timer()
  1331.  Dim TempTime As Date
  1332.  TempTime = Time - StartTime
  1333.  TimeSoFar = TempTime
  1334.  If TimeSoFar = AimTime Then SavePlanet
  1335. End Sub
  1336. Public Sub SavePlanet()
  1337.  LivesLeft = LivesLeft - 1
  1338.  ExitBounce = True
  1339.  WAVLoop "Shoot.qbs"
  1340.  Ball.Visible = True
  1341.  For i = 300 To 0 Step -10
  1342.   Area.Line (0, i)-(Ball.Left, Ball.Top), RGB(180, 0, 0)
  1343.   Area.Line (i, 0)-(Ball.Left, Ball.Top), RGB(180, 0, 0)
  1344.   Delay 1E-19
  1345.   Area.Cls
  1346.  Next i
  1347.  Area.DrawWidth = 12
  1348.  Area.Line (0, 0)-(Ball.Left, Ball.Top), RGB(180, 0, 0)
  1349.  Area.DrawWidth = 6
  1350.  Area.Line (0, 0)-(Ball.Left, Ball.Top), RGB(255, 0, 0)
  1351.  Area.DrawWidth = 3
  1352.  Area.Line (0, 0)-(Ball.Left, Ball.Top), vbWhite
  1353.  Delay 0.2
  1354.  Area.Cls
  1355.  StopSounds True
  1356.  BlowUpBall
  1357.  Ball.Visible = False
  1358.  CentreBall
  1359.  GameStory = "The Comet Has Been Safely Destroyed!"
  1360.  Sleep 1.6
  1361.  GameStory = ""
  1362.  Select Case LivesLeft
  1363.  Case 2
  1364.   GameStory = "You've Saved The Planet neptune!"
  1365.   Score = Str(Int(Val(Score) + 5000))
  1366.   AimTime = "00:00:45"
  1367.   Sleep 1.9
  1368.   GameStory = "Your next Mission Is To Save Mars!" & Chr(13) & "The Target Time Is 0.45 Minuets."
  1369.   Sleep 3
  1370.   LifeTxt(3).caption = "OK"
  1371.   ExitBounce = False
  1372.  Case 1
  1373.   GameStory = "You've Saved Mars!!"
  1374.   Score = Str(Int(Val(Score) + 10000))
  1375.   AimTime = "00:01:30"
  1376.   Sleep 1.9
  1377.   GameStory = "Your next Mission Is To Save Earth!" & Chr(13) & "The Target Time Is 1.30 Minuets."
  1378.   Sleep 3
  1379.   LifeTxt(2).caption = "OK"
  1380.   ExitBounce = False
  1381.  Case 0
  1382.   GameStory = "You've Saved The Planet Earth!!!"
  1383.   Score = Str(Int(Val(Score) + 20000))
  1384.   LifeTxt(1).caption = "OK"
  1385.   Sleep 3
  1386.   ExitBounce = True
  1387.   ExitBounce = True
  1388.   ExitBounce = True
  1389.   ShowStats
  1390.   Exit Sub
  1391.  End Select
  1392.  Ball.Visible = True
  1393.  Area.Refresh
  1394.  GameStory = "Ready"
  1395.  Delay 0.8
  1396.  GameStory = "GO!"
  1397.  Delay 0.6
  1398.  GameStory = ""
  1399.  XSpeed = CmdSpeedParam
  1400.  YSpeed = CmdSpeedParam
  1401.  ExitBounce = False
  1402.  ExitBounce = False
  1403.  Bounce
  1404. End Sub
  1405. Private Sub TitleScreen_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1406.  ExitBounce = True
  1407.  UnHighlight Story
  1408.  UnHighlight TrainingMode
  1409.  UnHighlight Start
  1410.  UnHighlight Quit
  1411. End Sub
  1412. Public Sub RefreshForm()
  1413.  Me.Show
  1414.  Me.Refresh
  1415.  Area.Refresh
  1416.  TitleScreen.Refresh
  1417.  Info.Refresh
  1418. End Sub
  1419. Private Sub Area_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  1420.  If Reset.Tag = "yes" Then UnHighlight Reset
  1421.  TPad.Left = Int(X - (TPad.Width / 2))
  1422.  BPad.Left = TPad.Left
  1423.  RPad.Top = Int(Y - (RPad.Height / 2))
  1424.  LPad.Top = RPad.Top
  1425. End Sub
  1426. Sub Form_Load()
  1427.  Load LoadUp
  1428.  LoadUp.Visible = True
  1429.  ExitBounce = True
  1430.  Area.Visible = False
  1431.  LivesLeft = 3
  1432.  XSpeed = CmdSpeedParam
  1433.  YSpeed = CmdSpeedParam
  1434.  LoadScore
  1435.  LoadTitlePics
  1436.  LoadGamePics
  1437.  LoadScrollText
  1438.  Unload LoadUp
  1439.  Call SetWindowRgn(KillBall.hWnd, CreateEllipticRgn(0, 0, Ball.Width / Screen.TwipsPerPixelX, Ball.Height / Screen.TwipsPerPixelY), True)
  1440.  Show
  1441.  Scroll.StartScroll
  1442.  RefreshForm
  1443. End Sub
  1444. Public Sub LoadScrollText()
  1445. LoadPercent = LoadPercent + 1
  1446. LoadUp.caption = LoadPercent
  1447. LoadUp.CurrLoad.caption = "Loading Text..."
  1448. LoadUp.Refresh
  1449. Sleep (0.3)
  1450. Scroll.Font.Name = Terminal
  1451. Scroll.Font.Size = 14
  1452. Scroll.Font.Bold = True
  1453. Scroll.caption = "< Q U A D - B A L L > - < P r o g r a m m i n g ,   G r a p h i c s ,   S o u n d   E f f e c t s   B y   A r v i n d e r   S e h m i > - < A r v i n d e r @ S e h m i . C o . U k > - "
  1454. End Sub
  1455. Private Sub LoadGamePics()
  1456.  If GamePicsLoaded = True Then Exit Sub
  1457.  Call LoadPic(Area, "Space.Img")
  1458.  Call LoadPic(Info, "QBallI.Img")
  1459.  Call LoadPic(AniBall, "Ball.Img")
  1460.  Call LoadPic(TPad, "TBPad.Img")
  1461.  Call LoadPic(BPad, "TBPad.Img")
  1462.  Call LoadPic(LPad, "LRPad.Img")
  1463.  Call LoadPic(RPad, "LRPad.Img")
  1464.  Call LoadPic(BallBlow, "BallBlow.Img")
  1465.  Call LoadPic(Life(1), "Planet1.Img")
  1466.  Call LoadPic(Life(2), "Planet2.Img")
  1467.  Call LoadPic(Life(3), "Planet3.Img")
  1468.  KillEarth.Picture = Area.Picture
  1469.  Call LoadAniPic(Ball, AniBall, 0)
  1470.  Call LoadAniPic(KillBall, AniBall, "0")
  1471.  GamePicsLoaded = True
  1472. End Sub
  1473. Private Sub LoadTitlePics()
  1474.  If TitlePicsLoaded = True Then Exit Sub
  1475.  Call LoadPic(StoryScreen, "QBallS.Img")
  1476.  Call LoadPic(TitleScreen, "QBallT.Img")
  1477.  Call LoadPic(StatBox, "QBallS.Img")
  1478.  UnHighlight Start
  1479.  UnHighlight Quit
  1480.  UnHighlight Story
  1481.  TitlePicsLoaded = True
  1482. End Sub
  1483. Sub LoadStoryString()
  1484. Dim NewLine As String
  1485. NewLine = Chr(13) & Chr(13)
  1486. StoryLabel.FontBold = True
  1487. StoryLabel.caption = NewLine & "The Year is 2500. " & _
  1488.  "The Human Civilisation Has Expanded And now;" & _
  1489.  " Earth, Mars And neptune Are All Inhabited by Our" & _
  1490.  " Species." & NewLine & "The Colonists On The Planet neptune Have Discovered" & _
  1491.  " Fifteen Large Comets Heading Towards Our Solar System. Three Of These are" & _
  1492.  " Heading For The Civilised Planets, These Planets" & _
  1493.  " Will be Destroyed If The Comets Are not Destroyed First." & NewLine & _
  1494.  " You Have Been Assigned To Take Control Of A new Protection" & _
  1495.  " System. You Will Have Keep The Comets In Their Current Area Location (One At a Time)" & _
  1496.  " So That There Will Be Enough Time To Destroy Each Of The Dangerous Three Saftly." & _
  1497.  NewLine & "The Human Civilisation Is Depending On YOU!"
  1498. End Sub
  1499. Public Sub SpinBall(Direction)
  1500. Static BallCell As Single
  1501.  Select Case Direction
  1502.   Case Clock
  1503.    BallCell = BallCell + 0.5
  1504.    If Int(BallCell) = 8 Then BallCell = 0
  1505.    Call LoadAniPic(Ball, AniBall, Int(BallCell))
  1506.   Case AntiClock
  1507.    BallCell = BallCell - 0.5
  1508.    If Int(BallCell) = -1 Then BallCell = 7
  1509.    Call LoadAniPic(Ball, AniBall, Int(BallCell))
  1510.  End Select
  1511. End Sub
  1512. Public Sub Bounce()
  1513. Static BallXCent As Integer, BallYCent As Integer
  1514. Static Bounces As Integer
  1515. Call GetSpeed
  1516. If ExitBounce = True Then GoTo Nd2:
  1517. Ball.Visible = True
  1518. Call SetWindowRgn(Ball.hWnd, CreateEllipticRgn(0, 0, (Ball.Width / Screen.TwipsPerPixelX), (Ball.Height / Screen.TwipsPerPixelY)), True)
  1519. StartTime = Time
  1520. DoEvents
  1521. KeepMouseOnForm
  1522. Ball.Left = Ball.Left + XSpeed
  1523. Ball.Top = Ball.Top + YSpeed
  1524. BallXCent = Int(Ball.Left + (Ball.Width / 2))
  1525. BallYCent = Int(Ball.Top + (Ball.Height / 2))
  1526.  If Ball.Top <= Limit.Top And YSpeed < 0 Then
  1527.   TPadLeft = TPad.Left
  1528.   TPadRight = Int(TPad.Left + TPad.Width)
  1529.   If BallXCent > TPadLeft And BallXCent < TPadRight Then
  1530.    Call WAVPlay("Hit.qbs")
  1531.    YSpeed = -YSpeed
  1532.    AddScore
  1533.    GoTo nd:
  1534.   Else
  1535.    Die
  1536.   End If
  1537.  ElseIf Ball.Left <= Limit.Left And XSpeed < 0 Then
  1538.   LPadTop = LPad.Top
  1539.   LPadBottom = Int(LPad.Top + LPad.Height)
  1540.   If BallYCent > LPadTop And BallYCent < LPadBottom Then
  1541.    Call WAVPlay("Hit.qbs")
  1542.    XSpeed = -XSpeed
  1543.    AddScore
  1544.    GoTo nd:
  1545.   Else
  1546.    Die
  1547.   End If
  1548.  ElseIf Int(Ball.Left + Ball.Width) >= Int(Limit.Left + Limit.Width) And XSpeed > 0 Then
  1549.   RPadTop = RPad.Top
  1550.   RPadBottom = Int(RPad.Top + RPad.Height)
  1551.   If BallYCent > RPadTop And BallYCent < RPadBottom Then
  1552.    WAVPlay ("Hit.qbs")
  1553.    XSpeed = -XSpeed
  1554.    AddScore
  1555.    GoTo nd:
  1556.   Else
  1557.    Die
  1558.   End If
  1559.  ElseIf Int(Ball.Top + Ball.Height) >= Int(Limit.Top + Limit.Height) And YSpeed > 0 Then
  1560.   BPadLeft = BPad.Left
  1561.   BPadRight = Int(BPad.Left + BPad.Width)
  1562.   If BallXCent > BPadLeft And BallXCent < BPadRight Then
  1563.    Call WAVPlay("Hit.qbs")
  1564.    YSpeed = -YSpeed
  1565.    AddScore
  1566.    GoTo nd:
  1567.   Else
  1568.    Die
  1569.   End If
  1570.  End If
  1571. If Bounces = 15 Then
  1572.  KeepMouseOnForm
  1573.  If XSpeed > 0 Then SpinBall Clock Else SpinBall AntiClock
  1574.  Bounces = 0
  1575.  Dim TempTime As Date
  1576.  TempTime = Time - StartTime
  1577.  TimeSoFar = TempTime
  1578.  If TimeSoFar = AimTime Then SavePlanet
  1579. End If
  1580. Bounces = Bounces + 1
  1581. Loop Until ExitBounce = True
  1582. StopSounds False, True
  1583. Ball.Visible = False
  1584. TimeSoFar = "00:00:00"
  1585. End Sub
  1586. Public Sub Die()
  1587.  ExitBounce = True
  1588.  LivesLeft = LivesLeft - 1
  1589. If LivesLeft > 0 Then BlowUpBall
  1590.  Select Case LivesLeft
  1591.   Case 2
  1592.    GameStory = "The Planet neptune Has Been Destroyed!" & Chr(13) & "Four Billion People Dead!"
  1593.    Area.Refresh
  1594.    Sleep 2.5
  1595.    GameStory = "Your next Mission Is To Save Mars!" & Chr(13) & "The Target Time Is 0.45 Minuets."
  1596.    Sleep 3
  1597.    GameStory = "Ready"
  1598.    Delay 0.8
  1599.    GameStory = "GO!"
  1600.    Delay 0.6
  1601.    GameStory = ""
  1602.    AimTime = "00:00:45"
  1603.    LifeTxt(3).caption = "X"
  1604.   Case 1
  1605.    GameStory = "The Planet Mars Has Been Destroyed!" & Chr(13) & "Six Billion People Dead!"
  1606.    Area.Refresh
  1607.    Sleep 2.5
  1608.    GameStory = "Your next Mission Is To Save Earth!" & Chr(13) & "The Target Time Is 1.30 Minuets."
  1609.    Sleep 3
  1610.    GameStory = "Ready"
  1611.    Delay 0.8
  1612.    GameStory = "GO!"
  1613.    Delay 0.6
  1614.    GameStory = ""
  1615.    AimTime = "00:01:35"
  1616.    LifeTxt(2).caption = "X"
  1617.   Case 0
  1618.    LifeTxt(1).caption = "X"
  1619.    ShowDie
  1620.    Reset_Click
  1621.    Exit Sub
  1622.  End Select
  1623.  CentreBall
  1624.  YSpeed = CmdSpeedParam
  1625.  XSpeed = CmdSpeedParam
  1626.  GetSpeed
  1627.  ExitBounce = False
  1628.  Bounce
  1629. End Sub
  1630. Sub ShowDie()
  1631. 'centre earth and place the killer ball to the top
  1632.  KillBall.Top = 200
  1633.  KillBall.Left = 0
  1634.  BlowUpEarth.Left = Int((Me.Width - BlowUpEarth.Width) / 2)
  1635.  BlowUpEarth.Top = BlowUpEarth.Left 'Int((Me.Height - BlowUpEarth.Height) / 2)
  1636. 'hide all pic boxes and show only the animation one
  1637.  KillEarth.Visible = True
  1638.  Area.Visible = False
  1639.  TitleScreen.Visible = False
  1640.  Scroll.ExitScroll
  1641.  StoryScreen.Visible = False
  1642. ' set earth round
  1643. ' kill earth
  1644.   BlowUpEarth.SetShape True, False
  1645.  Dim Pos As Integer
  1646.  Dim Moves As Integer
  1647.  Static BallCell As Single
  1648.  With KillBall
  1649.   For Pos = 0 To (BlowUpEarth.Left - (.Width / 2)) + 250 Step 24
  1650.    .Top = .Top + 24
  1651.    .Left = .Top - 100
  1652.    '.Refresh
  1653.    KillEarth.Refresh
  1654.    BallCell = BallCell + 0.5
  1655.    If Int(BallCell) = 8 Then BallCell = 0
  1656.    Call LoadAniPic(KillBall, AniBall, Int(BallCell))
  1657.   Next
  1658.   BlowUpEarth.SetShape False, True
  1659.   Call WAVLoop("blowup.qbs")
  1660.   BlowUpEarth.Animate
  1661.   Call StopSounds(True, False)
  1662.  End With
  1663. KillBall.Visible = False
  1664. BlowUpEarth.Visible = False
  1665. GameStory2 = "The Planet Earth Has Been Destroyed!" & Chr(13) & "Eight Billion People Dead!"
  1666. Area.Refresh
  1667. Sleep 2.5
  1668. GameStory2 = ""
  1669. 'show all other picboxes
  1670.  KillEarth.Visible = False
  1671.  Area.Visible = True
  1672.  StoryScreen.Visible = False
  1673.  TitleScreen.Visible = True
  1674.  ShowStats
  1675. End Sub
  1676. Public Sub BlowUpBall()
  1677.  Ball.Visible = True
  1678.  Dim i As Integer
  1679.  WAVPlay "blowup.qbs"
  1680.  Area.Cls
  1681.  Area.Refresh
  1682.  For i = 0 To (BallBlow.Rows * BallBlow.Cols) - 1
  1683.   Call LoadAniPic(Ball, BallBlow, i)
  1684.   Ball.Refresh
  1685.   Call Sleep(0.1)
  1686.  Next i
  1687.  CentreBall
  1688.  Call LoadAniPic(Ball, AniBall, 0)
  1689. End Sub
  1690. Sub AddScore()
  1691. On Error GoTo ScoreTooHigh
  1692.  Call IncSpeed
  1693.  Call GetSpeed
  1694.  Dim AveSpeed As Integer
  1695.  AveSpeed = Int(XSpeed + YSpeed) / 2
  1696.  If AveSpeed < 0 Then AveSpeed = -AveSpeed
  1697.  Score = CLng(Val(Score) + CLng(5 * AveSpeed))
  1698.  If Val(Score.caption) > 99999 Then Score.FontSize = 16
  1699.  NumBounces = NumBounces + 1
  1700.  Exit Sub
  1701. ScoreTooHigh:
  1702.  Score.FontSize = 14
  1703.  Score = "Maxed Out"
  1704. End Sub
  1705. Public Sub GetSpeed()
  1706.  Dim TempX, TempY
  1707.  TempX = XSpeed
  1708.  TempY = YSpeed
  1709.  If TempX < 0 Then TempX = -TempX
  1710.  If TempY < 0 Then TempY = -TempY
  1711.  CommetSpeed = Val(Int((TempX + TempY) / 2))
  1712.  If Val(CommetSpeed) > FastSpeed Then FastSpeed = Val(CommetSpeed)
  1713. End Sub
  1714. Private Sub KeepMouseOnForm()
  1715. If ExitMainMouse = True Then GoTo nd:
  1716. If Get_Mouse_X >= Int((Me.Left + Me.Width) _
  1717.  / Screen.TwipsPerPixelX) - 5 Then _
  1718.  Set_Mouse_X ((Me.Left + Me.Width) / Screen.TwipsPerPixelX) - 5
  1719. If Get_Mouse_X <= Int((Me.Left) _
  1720.  / Screen.TwipsPerPixelX) Then _
  1721.  Set_Mouse_X ((Me.Left) / Screen.TwipsPerPixelX) + 5
  1722. If Get_Mouse_Y <= Int(Me.Top / Screen.TwipsPerPixelY) + 5 Then _
  1723.  Set_Mouse_Y (Me.Top / Screen.TwipsPerPixelY) + 35
  1724. If Get_Mouse_Y >= Int((Me.Top + Me.Height) / Screen.TwipsPerPixelY) - 5 Then _
  1725.  Set_Mouse_Y ((Me.Top + Me.Height) / Screen.TwipsPerPixelY) - 5
  1726. End Sub
  1727.