Results 1 to 17 of 17

Thread: Games in VB

  1. #1

    Thread Starter
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211

    Games in VB

    well i was thinking and i thought i wonder if halflife could be make in vb. i was just thnkin how wuld u mak a game like that.... like at he front where it has the options how would some1 do stuff like that

  2. #2
    Junior Member
    Join Date
    Sep 2001
    Posts
    22
    yeah you could.....don't know how fast it would go though.......
    Two Wrongs May Not Make A Right, But Three Rights Make A Left....

  3. #3
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Direct3D . You should have some good knowledge of 3D maths, especially if you're serious about this. You'll need to know collision detection, etc. It's hard work, but I would like to see the result in the end, if there is one .

    And it wouldn't go much slower than in C++, maybe 9/10ths the frame rate... not that noticable I wouldn't think, though.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  4. #4
    Member SapphireGreen's Avatar
    Join Date
    Sep 2001
    Location
    I do not actually exist
    Posts
    45
    Yeah, most people seem to think that VB is really slow at games like Halflife, Diablo II, etc. It was virtually impossible to do it, before VB 6 and Direct X. Now it's comparable to C++.

    I haven't looked at the .NET, but I wouldn't think it changes much, as it is more orientated (surprisingly) at the net. There are, however, some time saver tricks like so:

    VB - VB 6

    Dim K, L as Long
    ''' Only L would be Long, K would be Variant '''

    VB NET

    Dim K, L, Z, Y, X, Me, You, Us, AnythingElseYouCanThinkOf as Long
    ''' They're all Longs '''

    Handy, no?
    On Error Give Up

    Mind over matter. Then if it doesn't matter, you lose your mind.

  5. #5
    Zaei
    Guest
    I am sorry, but VB IS slow. Sure, you can use a fast library written in C++, such as DirectX, or OGL, but you still have to put in logic, AI, and all of that other stuff. The rendering might be fast, but if your AI code still takes 400ms to execute, you arent going to get a very playable game. Classes are also slow, and they are required for any recursive structures (trees, skeletal systems, etc). VB doesnt support many forms of polymorphism, such as inheritance from a base class. It is possible, but you have to cut and paste a lot of code. The list goes on and on. Sure, you can make a fun, playable game in VB, but it will be a bit of time before VB becomes a true compeititor to C/C++ for creating games.

    Z.

  6. #6

    Thread Starter
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    well im not really to much worried about speed because my game will be like a 2d scrolling game

  7. #7
    Junior Member
    Join Date
    Sep 2001
    Location
    Australia
    Posts
    30
    Originally posted by Zaei
    I am sorry, but VB IS slow. Sure, you can use a fast library written in C++, such as DirectX, or OGL, but you still have to put in logic, AI, and all of that other stuff. The rendering might be fast, but if your AI code still takes 400ms to execute, you arent going to get a very playable game. Classes are also slow, and they are required for any recursive structures (trees, skeletal systems, etc). VB doesnt support many forms of polymorphism, such as inheritance from a base class. It is possible, but you have to cut and paste a lot of code. The list goes on and on. Sure, you can make a fun, playable game in VB, but it will be a bit of time before VB becomes a true compeititor to C/C++ for creating games.

    Z.
    True VB is slow, but from what I've seen of VB.NET, it isn't. Class inheritance and threading are a few of the new features that help with its performance.
    <! Ozki !>

  8. #8
    Zaei
    Guest
    Threading only gives the appearance of performance, but in actuallity, slows the application down. Besides which, there are few uses of threading in games, in VB or C++. Inheritance also reduces speed, but you gain in development time, modularity, and code structure. If Microsoft spends some time on the VB compiler, that (and only that) will increase speed.

    Z.

  9. #9
    Member
    Join Date
    Aug 2001
    Location
    nr Manchester, England
    Posts
    34
    VB.Net is leagues better than VB6.

    I'm currently developing a project using it, but I'll be developing a game of some sort in my own time shortly.

    VB.Net moves VB more closer to languages such as C & C++ more than any other version of VB ever has!

    Long live VB!!!!

  10. #10

    Thread Starter
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    im makin a 2d game so im not worried about speed

  11. #11
    Member
    Join Date
    Aug 2001
    Location
    nr Manchester, England
    Posts
    34
    VB.Net use the new Common Runtime Language.

    With the common language runtime, VB has more object-oriented features than before.

    Also, the Common Runtime Language has to be used by any Language that wishes to use the .Net framework. So there should be no performance variations across different languages.

  12. #12
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Originally posted by Motoxpro
    im makin a 2d game so im not worried about speed
    Goto www.coolground.com/plenderj
    Scroll across to the right and you can take the source code to my unfinished-as-of-yet 2d scroller
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  13. #13
    Zaei
    Guest
    Common Runtimes (gag). "Should not" is not "is not". If i were to create an ActiveX control in VB, and use it in C++, it would not be as fast as if i had created the control in C++. Just because a runtime can be used across languages doesnt mean that all languages are equal.

    Runtimes are the biggest gripe that just about every programmer has against VB. So, Microsoft, in thier infinite wisdom, has, instead of removing those runtimes, created more, and decided that since VB is so popular, Runtimes should be shared across all .NET languages.

    Again, I say, that, the one and only way that VB will be faster is if Microsoft inmproves the compiler.

    Actually, the above statement is wrong. There are two ways to increase the speed of VB. Improve the compiler, and remove OLE Automation. I think the figure for 2D array access in VB is 6 times slower then C++, thanks to SAFEARRAY.

    Z.

  14. #14

    Thread Starter
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    thx

  15. #15

    Thread Starter
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    Originally posted by plenderj


    Goto www.coolground.com/plenderj
    Scroll across to the right and you can take the source code to my unfinished-as-of-yet 2d scroller

    whats it called

  16. #16
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Well if you looked at the page you'd see its called Craft.
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  17. #17

    Thread Starter
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    yes, i see it now. coo game.. ill play around withit and see if i can learn anything

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