Click to See Complete Forum and Search --> : Helpppp!!!!!!! Please!!!
dflw
Aug 16th, 2001, 04:17 PM
Hello,
I am a beginner in VB6 2D games... I want to eventually learn how to program 3D VB6 games with DirectX or OpenGL. Right now you might say, I know crap about graphics games with VB. Can anyone give me suggestions on where to start on games for VB leading the path to 3D games? Not like hangman games though. I am completely blank on where to start graphical games. Are there any sites out there that explain the basics of VB graphical games like moving objects around, simple 2D engines, collision detection?
Some of you more experienced programmers probably know where I could start :D ...
Thanks for any help or suggestions
Zaei
Aug 16th, 2001, 05:14 PM
Just go and do. Its probably the best advice available. Learn the basics first, then move on up.
For control, you can use Form_MouseMove, Form_MouseDown and _MouseUp, Form_KeyDown and _KeyUp. Probably one of the simpler things you can do would be put a control button on the form, and move it around with the arrow keys (vbKeyDown, vbkeyUp, vbKeyLeft, vbKeyRight), and .Top and .Left. You should be able to figure it out.
Z.
dflw
Aug 16th, 2001, 05:43 PM
I already know how to move rectangles around using the vbkeys and simple collision detection like...
If Shape1.Left <= (Shape2.Left + Shape2.Width) Then
Shape1.BorderColor = vbRed
End If
...so I guess its start. I thought I was working in the wrong direction. By the way, how do you draw rectangles and circles with code? So I could possibly create pixel perfect collision?
TY
drewski
Aug 16th, 2001, 05:46 PM
you might want to try http://www .oneringsoftware.com but this hasn't been updated in a long time. probably a more current one would be http://rookscape.com/vbgaming/ . i'm not sure what the second one has in the way of tutorials but i know one ring software has some pretty good tutorials for beginning 2d game programming.
i hope this helps.
Drewski
dflw
Aug 16th, 2001, 05:46 PM
Also, in order to integrate(or whatever, it sounds good:D )Direct X 8 with VB, do I need to learn new code? or can I just download the DXSDK? and I'll be all set to roll?
Fencer5
Aug 17th, 2001, 08:56 PM
Make something with simple graphics (asteroids, etc.) so you can practice the collision detection and stuff. When you do it with rectangles there isn't a point... however, asteroids will have apoint and won't be that much more difficult.
DarkMoose
Aug 18th, 2001, 09:05 AM
Don't dive too far into the deepend there.. I'd learn some API before going onto DirectX, since it's considerably easier and it will help you understand VB a bit more before you go onto harder stuff like DX. Try learning how to use the APIs GetKeyState and BitBlt.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.