how would i go about making a shooting game. like your a stick and you walk around shooting the other stick
Printable View
how would i go about making a shooting game. like your a stick and you walk around shooting the other stick
That's a very general question. What do you want to know?
Can you program 3d graphics? Do you know how to do collision testing?
You need to know this and much more for writing a shooter.
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
Do you want it to look like Doom?
Can the stick man walk or just turn?
either, doom would be nice, but thats to comp, so stick
So you want the man to walk in 2D. Like Super Mario Bros on the old Nintendo 8bit? Or do I not follow you at all….
Or a shooting range? Fixed position, you just turn around and soot at some things that pop up.
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.
bingo. by the way do u know any programs i can use to make 8bit pics for my game?Quote:
Originally posted by NoteMe
So you want the man to walk in 2D. Like Super Mario Bros on the old Nintendo 8bit? Or do I not follow you at all….
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 :)
lol, Sas.
Good idea, sure is motivating. I started with DX6 and DDraw, now in DX8 I don't get around to doing something...
use opengl :) gl for president!!! :D
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.
It actually uses Direct X
You can get a free downlaoded trial copy at
WWW.DarkBasic.com
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.
Of course, if you program in VB, cross-platform isn't much of a topic.
considering im a newbie....whats directX
Basically a lot of functions that let you do anything from transform a matrix to play an mp3 file.
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....
o **** this u guys may as well be speeking japenese LOL
it's a code thingy that lets you draw pretty pictures and make noises!
fast pictures..(high frame rates)...for your convenient...
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 :p
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.)
That game was actually kind of fun. Never thought of a game that way before. But it runs a kind of fast, don’t you think. But I do love the idea.
I WANNA CREATE OLD GAME GRAPHICS, LIKE SONIC AND MARIO! WWAAAA
hint hint......
I didn't yet finish it :rolleyes: but maybe you get the idea..
http://fox.acky.net/vb/english/codin...ial/index.html
When using DX, set the resolution to 320x240, will support the old look :D
Yes, i must admit, i used a TIMER!!!
:D :cool: :) :( :o :eek: :mad:
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!
where can i download this directX thingy mabobber that will let me make oldskool game gr@phics
please dont say www.directx.com or im gonna feel more stupid then i already do lol
it cant be www.directX.com cuz i need a username and passwd to enter that site....
edit: SORRY FOR NOT USING EDIT! fergot
...your smart....TOO SMART! GET HIM
is there any special thing i download? like directx draw or what
3nyone?
REPOSTED IN RIGHT FORUM
Download the DirectX SDK. Thats what you need...
Yeah, but it is slow... TOW hits an easy 50fps at 800x600, but only 28 or so at 320x200 =).Quote:
Originally posted by CornedBee
When using DX, set the resolution to 320x240, will support the old look :D
Z.
Why is it slower in small resolutions? Shouldn’t it be faster when there is less to draw to the screen? Or is it the graphics card that draws faster in normal resolutions like 800*600???????
Dunno... probably has a lot to do with each specific card. Many things are like that... For instance in wireframe mode, TOW drops to about 25 fps at 800x600, while my old Rage Pro didnt even flinch.Quote:
Originally posted by NoteMe
Why is it slower in small resolutions? Shouldn’t it be faster when there is less to draw to the screen? Or is it the graphics card that draws faster in normal resolutions like 800*600???????
CB: Id have to disagree that D3D is more advanced then OGL. D3D actually sacrifices features for abstraction. Card manufacturers release card specific extensions, which allow OGL programmers to take advantage of card specific features. The problem here is obviously code duplication... You want some feature, and it is supported in different ways on different cards, and so you have to write two sets of code. D3D allows you to access card features in a standard way, so you avoid this code duplication.
Z.
The manufacturer extensions are not part of the core OpenGL specification, and as you said they don't provide the same interface for all cards. DirectX keeps up to date with emerging trends, the specifications being developed together with the card manufacturers. All those new technologies of the Radeon 9700 (Pixel Shader 2.0, Vertex Shader 2.0, Displacement Mapping, ...) will already be built into DirectX 9.
Of course this is mainly because of MSs market power.
I don't know if DX sacrifices features, but I don't really think so, you can always write some software replacement...
Yes, simply because DX is a yearly release, it CAN have all of those features built in. But watch out, because I think we might be seeing an extension mechanism in DX in the next two or three years (I believe that MS was taking the OGL people to court over vertex shaders, though I heard that the real aim was to get them to give over their extension mechanism =).Quote:
Originally posted by CornedBee
The manufacturer extensions are not part of the core OpenGL specification, and as you said they don't provide the same interface for all cards. DirectX keeps up to date with emerging trends, the specifications being developed together with the card manufacturers. All those new technologies of the Radeon 9700 (Pixel Shader 2.0, Vertex Shader 2.0, Displacement Mapping, ...) will already be built into DirectX 9.
Of course this is mainly because of MSs market power.
I don't know if DX sacrifices features, but I don't really think so, you can always write some software replacement...
MS is actually an arse when it comes to OGL. You can only use the OGL version that comes with Visual Studio (this is all C++, VB "avoids" this), unless you grab the functions with GetProcAddress(). Dont remember the reason exactly, but I believe that is the situation.
Anyway =).
Z.
No, you could instead kick out the import libraries and replace them with those of your implementation.
But we all know that MS is an arse.
HOLY GEEZ! SOME PEOPLE ARE SAYING DOWNLOAD DIRECTX SDK TO MAKE OLD PIXEL GRAPHICS LIKE MARIO AND SONIC AND SOME PEOPLE SAY PSP7
You would have to download psp7 to make those OLD PIXEL GRAPHICS, but you should probably download DirectX SDK to make the game in. You can’t make pictures in DX....
PSP to create them, DX to display them. That simple.
That was more or less what I tried to say, but thank you for helping me out anyway...
ok, but in psp how do i make those small pixel graphics cuz the pencil option draws only in straight lines and the paintbrush option is too big
In the paintbrush tool options you can reduce the size.
And there is a freehand line tool too.
If you press 'O' on your keyboard, a tool option box will pop up. If you have chosen the paint brush you can change the size in that pop up box...
NoteMe, it seems we're trying to outredundant (I know this is not a word, but it sounds cool) each other.
I'm not trying to be smart or anything...just trying to help...sorry...
PS: I looked up "outredundant" in my big English/Norwegian wordbook, and you are right, it's not a word, but I found redundance and figured out what you meant...
You must mean out-rendundacize. :D
OKAY I lost you there guys...I've got a smattering of English....so you guys just have to bear over with me...
I often don't know English words (I'm a native German speaker) but I usually can guess them from context or from similar sounding words I know.
So the native language of microchips are German no days????
Of THIS microchip it is...