what i want is this stick man i have to shoot in whatever direction he is facing, and if he hits the target the target disappears. and are there any free 3D programming programs
OK you should first write your program by hand, then on computer. What the general idea (for a 2d game) would be is:
Main loop (perhaps controlled by timer or something)
Move enemie's (x,y) positions/directions (using simple/hard AI)
Check for input. If there is some, move the character's (x,y) position / direction pointing.
Check for 'shot'. If the player shoots, check for all enemies in line of player direction. If there is an enemy, make them disappear (like change their (x,y) to 0,0 and "beep" or something.)
Draw all the characters (in whatever way you want, but do it using all the (x,y) of the player and the enemies.
End of Main loop
Once you've done this, write Subs for each part (so your code doesn't get messy) and call the subs from the main loop.
The hardest part is drawing onto the screen to get it looking as you want it.
Nope, not 8-bits. Not that in to drawing with computers. But why do you want to make 8-bit pictures. Why not 16 or 32-bits or what ever. And if you want to make that kind of game with VB, you probably should start learning DX right away. Start with DX7, because it has DD. If you want to make that kind of game in DX8, you would have to use the D3D. And that’s maybe not where to start.
Actually, I suggest trying DirectX8 first... see how far you get before it totally confuses you.. then go to DX7. You'll see how easy it is, and you'll be thankful
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
(Just a heads-up)
Power to 2000 Electronic Donkeys! www.edonkey2000.com
I hate case sensitivity... all you get down the M1 is "are we there yet" and "ouch, watch the bumps".
Seeing as you seem to be real new to programming you could try useing a program like DarkBasic
Dark Basic is a 3D game programing language, but also dose 2D too, the syntax is very simerla to VB in alot of ways, but it has alot of built in commands to make game programming for fun and easy to use.
For example to get a 3D terrain and a 3D sphere on the terrain useing VB would requier a fair amount of codeing.
In Dark Basic the commands would be
Make Matrix 1,1000,1000,25,25
Make Object Sheare 1,10
first line makes a flat 3D terrain 1000X1000 and divided into 25x25 squares
second line makes a 3D sphear 10 units in size
You have all your ushall IF, Then, GoTo, Return, Funtions commands etc as well, but get a load more commands bundled in too. that makes the whole lengthy process of just setting up a game areana much more quicker.
Also if you want to draw graphics on your PC there are plenty of drawing packages out there on the internet, in fact i saw Paint Shop Pro 5 full version slapped onto the cover of a PC magazine the other day, do some web searches plenty of free stuff out there.
If you want to do 3D modeling the best software package out there for the novice is Milkshape 3D, you can get a free 30 trial download and after that its only a few quid to buy.
Cant remeber web adress for that just do a web searhc for Milkshape 3D
Is OpenGL suportet for VB? I didn't know that if thats true. But isn't OpenGL just for graphics. DX is all you need to make a game. Sound, multiplayer .....
For 3D programming, D3D is usually more state-of-the-art than OpenGL (we'll see what OpenGL 2.0 brings), since it even acts as a definition what cards must be able to do (talk about market power of MS).
For 2D programming, OpenGL is just as good as DirectDraw. But on windows DirectDraw is faster because the windows implementation of OpenGL internally uses DirectDraw (check the dependencies of the OpenGL dll, it depends on ddraw.dll)
If your game should be cross-platform (very advanced topic) go OpenGL, DirectX is windows-bound. Use OpenAL or a comparable library to replace DirectSound. Replace DirectPlay with pure sockets. Don't know what to replace DirectInput with, maybe direct hardware.
If you want to stay with windows, DX is usually the better choice.
All the buzzt CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
DirectX is a COM (Component Object Model) library that was built with C++. The DirectX SDK is a library of routines that maximize the performance of 2-D and 3-D games, with full support of hardware-accelerated graphics and sound. Sounds fun doesn't it.
So if you are new to game programming, pick up a few samples and start away. But if you are new to programming, you probably should try to make a "Hello World" program first, or something like that, before starting with game programming....
Ok, here's a little bit of open source i made last night. It's nothing flash, but it's the basics (you have you, opponents (enem) and you can move up/dn/lf/rt + strafe left/right.
You can shoot a bullet every so often (so can your enemies, but not with any good AI) , and it can hit enemies, then the die and respawn. (note: the collision detection is VERY bad, but i'm improving it tomorrow)
It would not take much coding to make it better, like throw in some 3d directX to change the circle people and their weapons to boxes
But for now, just a simple example of what you can do.
Sorry, it's not commented, BUT it is rather straight forward. There are many subs (like walkup, walkdown etc) which are self-explainatory, the only hard bit is the main loop, which i basically described earlier.
Enjoy (I know the game is quite sad, but it's only a learning tool.)
Yes, i must admit, i used a TIMER!!!
Sorry Fox, but i didn't yet know how to use GetTickCount (but now i do, so thanks)
If you really want to make old-looking graphics, just make your own emulator-type thing, where you have an array (dimensions of whatever the 8-bit things were), and in this store the values of your 8-bit graphics.
Then all you have to do is make your own subs, stuff like loading a pic into the array, moving all the pics to the right, etc.
Then, just draw all the 'pixels' (actually bigger than 1 pixel each) onto the screen, and TADA!