Any one know Visual Basic?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • coopy18
    Registered User
    • Oct 2004
    • 21

    #16
    mikey101's post will work for the keystrokes...

    As for the overall game flow, you could do something sort of like this (don't know how legible this is in a post. Let me know if this is what you are looking for and I can try to be more specific)

    Gameplay is like this
    -ships (rocks) falling from top to bottom
    -user moves right to left
    -user shoots straight up

    Create these things on the form load
    -Create a collection for storing laser shots (i would use a shape in vb6 that looks like a line)
    -Create a collection for storing enemy ships (another shape object maybe a triangle)
    -Create a user ship (yet another shape)
    -Timer to maintain game flow

    Do something like this when the timer fires
    -Check for user (spaceship) movement and process that
    --If moved left or right set the .left value appropriately
    -Check for user fired shot
    --If fired
    ---add a new laser shot to the collection
    ---Draw it on screen
    -Update laser movement from previous shots
    --For each item in the collection move it up .top ++
    -Update enemy ship movements
    --For each ship move it down .top --
    -Look for laser to enemy collision
    --if laser .top >= enemy.top + enemy.height AND laser.top <= enemy.top then
    ---if laser.left >= enemy.left AND laser.left <= enemy.left + enemy.width
    ----boom remove the enemy from screen and from collection
    ---end if
    --end if
    -Look for laser to user collision
    --similiar to the laser to enemy collision
    -Look for exit keystroke
    --if exit key then end

    hope that is of some use.
    -coopy18

    Comment

    • DiSoRdeR
      Pump enthusiast
      • Jul 2003
      • 1767

      #17
      Coopy I will try that, but most of the things you listed I have never done before. Hopefully I will be able to. I wish I had Visual Basic on my computer, but I have to wait until tomorrow when I have that class.

      Comment

      • coopy18
        Registered User
        • Oct 2004
        • 21

        #18
        Originally posted by DiSoRdeR
        Coopy I will try that, but most of the things you listed I have never done before. Hopefully I will be able to. I wish I had Visual Basic on my computer, but I have to wait until tomorrow when I have that class.
        Alright. If you want any help, feel free to IM me. I think my profile has my IM accounts on it.

        Comment

        • blackclown
          havoc's pod *****!
          • Jul 2003
          • 229

          #19
          i am slowly learning qbasic

          good trades: caliwagon31, coffey[NITRO], dnxleemz, B.C.,CoolHand, RogueFactor
          automags.org backwards

          Comment

          • DiSoRdeR
            Pump enthusiast
            • Jul 2003
            • 1767

            #20
            Originally posted by blackclown
            i am slowly learning qbasic
            Whats qbasic?

            Comment

            • blackclown
              havoc's pod *****!
              • Jul 2003
              • 229

              #21
              a old , easy writing program my friend said 2 learn before i started learning C++. I am just learning from http://www.qbasic.com/qbindex.shtml

              good trades: caliwagon31, coffey[NITRO], dnxleemz, B.C.,CoolHand, RogueFactor
              automags.org backwards

              Comment

              • mikey101
                aka murdoc
                • Jun 2001
                • 790

                #22
                i'm almost positive texis instruments uses Qbasic for some of their calculators..could be wrong though

                Comment

                • coopy18
                  Registered User
                  • Oct 2004
                  • 21

                  #23
                  I am pretty sure that you can use QBasic on some of the Basic Stamps too. I have used the OOPics and they are pretty cool. I don't have much of an electronics background but I bet you can do some really cool stuff with those.
                  -coopy

                  Comment

                  Working...