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
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