Page 1 of 2 12 LastLast
Results 1 to 40 of 62

Thread: Shooter

  1. #1

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702

    Shooter

    how would i go about making a shooting game. like your a stick and you walk around shooting the other stick
    Last edited by duc; Oct 17th, 2002 at 06:02 PM.

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.
    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.

  3. #3

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702
    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

  4. #4
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Do you want it to look like Doom?

  5. #5
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Can the stick man walk or just turn?
    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.

  6. #6

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702
    either, doom would be nice, but thats to comp, so stick

  7. #7
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Question

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

  8. #8
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Or a shooting range? Fixed position, you just turn around and soot at some things that pop up.
    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.

  9. #9
    Fanatic Member sql_lall's Avatar
    Join Date
    Jul 2002
    Location
    Up Above (i.e. AUS)
    Posts
    571

    Talking Try...

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

  10. #10

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702
    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….
    bingo. by the way do u know any programs i can use to make 8bit pics for my game?

  11. #11
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    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.

  12. #12
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    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)

  13. #13
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    lol, Sas.

    Good idea, sure is motivating. I started with DX6 and DDraw, now in DX8 I don't get around to doing something...
    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.

  14. #14
    Hyperactive Member
    Join Date
    May 2001
    Location
    England
    Posts
    312
    use opengl gl for president!!!
    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".

  15. #15
    Lively Member
    Join Date
    Oct 2002
    Location
    England, Bedfordshire
    Posts
    112
    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
    Last edited by Obear; Oct 15th, 2002 at 05:49 AM.

  16. #16
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    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 .....

  17. #17
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  18. #18
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Of course, if you program in VB, cross-platform isn't much of a topic.
    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.

  19. #19

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702
    considering im a newbie....whats directX

  20. #20
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Basically a lot of functions that let you do anything from transform a matrix to play an mp3 file.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  21. #21
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    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....

  22. #22

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702
    o **** this u guys may as well be speeking japenese LOL

  23. #23
    Addicted Member DarkMoose's Avatar
    Join Date
    Jul 2000
    Location
    in a box
    Posts
    185
    it's a code thingy that lets you draw pretty pictures and make noises!
    To understand recursion, one must first understand the concept of recursion.

  24. #24
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    fast pictures..(high frame rates)...for your convenient...

  25. #25
    Fanatic Member sql_lall's Avatar
    Join Date
    Jul 2002
    Location
    Up Above (i.e. AUS)
    Posts
    571

    Talking A start...

    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.)
    Attached Files Attached Files
    sql_lall

  26. #26
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    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.

  27. #27

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702
    I WANNA CREATE OLD GAME GRAPHICS, LIKE SONIC AND MARIO! WWAAAA

  28. #28

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702
    hint hint......

  29. #29
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    I didn't yet finish it but maybe you get the idea..

    http://fox.acky.net/vb/english/codin...ial/index.html

  30. #30
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    When using DX, set the resolution to 320x240, will support the old look
    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.

  31. #31
    Fanatic Member sql_lall's Avatar
    Join Date
    Jul 2002
    Location
    Up Above (i.e. AUS)
    Posts
    571

    Talking BAd me!!

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

  32. #32

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702
    where can i download this directX thingy mabobber that will let me make oldskool game gr@phics

  33. #33

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702

    Cool

    please dont say www.directx.com or im gonna feel more stupid then i already do lol

  34. #34

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702

    cant be

    it cant be www.directX.com cuz i need a username and passwd to enter that site....

    edit: SORRY FOR NOT USING EDIT! fergot

  35. #35
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  36. #36

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702
    ...your smart....TOO SMART! GET HIM

  37. #37

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702
    is there any special thing i download? like directx draw or what

  38. #38

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702
    3nyone?

  39. #39

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702
    REPOSTED IN RIGHT FORUM
    Last edited by duc; Oct 17th, 2002 at 07:30 PM.

  40. #40
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Download the DirectX SDK. Thats what you need...

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width