Results 1 to 20 of 20

Thread: question about gaming

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Location
    Ca
    Posts
    106

    Cool

    I heard from someone that most games are made in C++. Is this true? I've been programming for for 3 years now and I can't possibly imagine me writing a code for games such as final fantasy... Are these programmers crazy or am I just too far behind... I could make binary search trees to store in some data and print them out on a screen but that's about only thing I can do... If people expect programmers to make those crazy games, I have a LONG WAY TO GO!!!!

  2. #2
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    Indeed, C/C++ is fast and flexible enough to write games. Actually using DirectX is probably the best way to write games.

    All good games I know are made in C/C++...

  3. #3
    Guest
    Even though VB is good for games these days (because of DirectX support), I would recommend using C++ because it's a much more flexible language than VB.

    Even though it might take a few years to master it, it will defenitly help you out in the long run.




  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Although it isn't impossible to do great games in Vb, I've heard some good games actually was done with Vb, and I have myself done pretty much with DirectX
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  5. #5
    Guest
    I was not implying that VB was bad at it, but if games is what you're insterested in, C++ is the better language.

  6. #6
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    I agree C++ Is a lot more flexible, therefore more useful in making games, but with the right tricks you could get as far with VB.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  7. #7
    Guest
    I must disagree with your idea regarding getting as far with VB. First of all, C++ produces much faster Applications and smaller file sizes. On top of that, you do not need to have a 3rd party Type Library to translate between the two programs. In C++ they talk directly to each other. This gives C++ yet another speed advantage.

  8. #8
    Lively Member
    Join Date
    May 2000
    Posts
    84

    another note on speed.

    I've writte equivilant image processing algorithms in both VB and C++. The image arrays (600X600) took about a tenth of the time to compute in C++ than it did in VB. This is after the bound checking options in VB were turned off.

    Results:
    VB Median Filter (5X5) region per pixel: 61.45 s
    C++ Median Filter (5X5) region per pixel: 5.87 s

  9. #9
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    Illuminator, are you sure the VB code was compiled, vb is very slow in the IDE but nearly the same speed as C++ when it's compiled. The reason C++ is better for games is that you can use pointers and other tricks to improve the algorithms, because in gaming you have to run the same algorithms loads of times.

  10. #10
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    That's what i think you can do in Vb too, but i'm not sure how
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  11. #11
    Guest
    Sam: I must disagree with you on this as well. They are not the same speed when compiled. VB still needs to translate through the runtime files and the Type Library to get to the system, whereas C++ does not.

  12. #12
    Frenzied Member
    Join Date
    Jun 2000
    Location
    England, Buckingham
    Posts
    1,341
    The Unreal Editor was written in vb, thats why it so **** slow

  13. #13
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    It's also unstable and tricky to get running in the first place.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  14. #14
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    That's probably the programmers fault, not VB.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  15. #15
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Yeah, I think UnrealEd was a quick hack for in-house development. Didn't they rewrite a better one for commercial use?
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  16. #16
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    u can use pointer by the varptr function. it is there even if you never find them in the manuals. and use the copymem api.
    That proffesional games need the VB runtimes is because of 'outside game' tools like mapeditors configuration programs, setups, and litte proggies that are perhaps loaded during game for speed independent stuff.

    What do you mean by calling the runtimelibries as api?

    AND Please tell me more about this!!!!!!!!!!!!!!!!!!!!
    >What can you do to minimize the amount of interpretation >to do? I know you can minimize it a bit by using an API to >make a window instead of "Drawing" a window, but what else >can you do?

    thanks
    Sanity is a full time job

    Puh das war harter Stoff!

  17. #17
    Hyperactive Member Warmaster199's Avatar
    Join Date
    Aug 2000
    Location
    Canada
    Posts
    306
    What I mean when I said using the VBRuntime Libraries as API was that you can Declare functions in the libraries such as VarPtr. Why you have to declare this even if it must be in your program's references, I don't know... But I do know that to use that function, you have to Declare it; You can't get it from the Object Browser.
    Designer/Programmer of the Comtech Operating System(CTOS)

  18. #18
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    I don't need to on mine...

    If I just type VarPtr into the code window it pops up the parameters thingie.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  19. #19
    Hyperactive Member Warmaster199's Avatar
    Join Date
    Aug 2000
    Location
    Canada
    Posts
    306

    Cool

    I tried it out... Parksie you were right... You don't need to declare it. I typed in Varptr and in tooltip text, "VarPtr(Ptr as Any) As Long". It is clear that pointers are in Visual Basic too.

    And /\/\isanThr0p, I just noticed it now, but you wanted to find more about making forms with API's. I won't post the code here because it's a 10KB Bas Module which would extend this page about 40-50 lines. I will say that you can find out how to do this by going to http://www.vbexplorer.com/DirectX4VB
    Go to Code or Tutorials and download the windows thing... Also, If you want, I can Email you the code module with a more in-depth version of their code(I got my module somewhere else on net, I forget where).
    Designer/Programmer of the Comtech Operating System(CTOS)

  20. #20
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    Hey thanks warmaster.

    Of course I'm interested in you more in depth version (whatever that will mean (I'm german))

    I used the varPtr some times, but I could not write to an adress used by a C program. I tried it with two VBprogramms changing the value of textboxes and it worked, but not with the C program.!
    Sanity is a full time job

    Puh das war harter Stoff!

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