Hi there!!!
I need some help with Visual Basic. Since this forum says:
Quote:
Programming [View new posts]
This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
|
I thought it was worth the shot

. I'm trying to make a memory game with Visual Basic to learn how to use the language effectively, plus it's nice to have more things on the resume

. So far, it looks like this:
http://www.geocities.com/kooltux/temp/memory.JPG
it's geocities, so you may need to copy and paste the above address in a new windows to work :S. Sorry.
As you see, it's a simple memory game with Megaman(!). All 16 default images(with a "Dr") are loaded by default. I'm not even sure if I should do it... Here is where the problem comes... The book I'm reading, does not teach anything about graphics with Visual Basic, and I love graphics and games. So...
1 - How can I load an image and store it into a variable? Which command does it?
Another problem.. I cannot think in a solution for the pseudo-code. I thought a memory game would be easy, but it's driving me crazy

. Could anyone give me any suggestion for a pseudo-code? So far, after a week planning this:
I know that I have 8 different images, I need to sort them into 16 squares. I need to randomize the sorting of images every time the game starts. Then I've to check if the player choose two images and If they are the same. If they are, I hide them, if they are not, I flip them back.
Wow, that's is just a very simple game in the easiest language around and I cannot think in a solution. I think I should give up programming. Anyway, is anyone good with Visual Basic or has a good solution for this?
Thanks a bunch in advance!.