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

Thread: VB Game....

  1. #1

    Thread Starter
    Addicted Member ßädbö¥'s Avatar
    Join Date
    Jul 2003
    Location
    I Lost somewhere !!
    Posts
    198

    Wink VB Game....

    Hi....
    Can any 1 give me a small example of VB game... so i'll get idea about how 2 make game in VB....

    thnx

    ßädbö¥ Rü£z

    ICQ # : 204178672
    AOL SN : Badboy9jan
    badboy9jan<img src="images/smilies/s...g" />gmail.com

  2. #2
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    Best game ever:

    VB Code:
    1. Do
    2. If Int(Rnd * 10 + 1) = InputBox("I've choosen a number from 1 to 10, guess it.", "Guess the number") Then
    3. MsgBox "Right!"
    4. Else
    5. MsgBox "Wrong!"
    6. End If
    7. Loop Until vbNo = MsgBox("Play again?", vbYesNo, "Guessing game")

  3. #3
    Not NoteMe SLH's Avatar
    Join Date
    Mar 2002
    Location
    192.168.0.1 Preferred Animal: Penguin Reason for errors: Line#38
    Posts
    3,051
    lol!
    Quotes:
    "I am getting better then you guys.." NoteMe, on his leet english skills.
    "And I am going to meat her again later on tonight." NoteMe
    "I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
    "my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
    Have I helped you? Please Rate my posts.


  4. #4
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    ßädbö¥: you reckon if you made a game anyone would run it?? http://www.vbforums.com/showthread.p...hreadid=254491
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  5. #5

    Thread Starter
    Addicted Member ßädbö¥'s Avatar
    Join Date
    Jul 2003
    Location
    I Lost somewhere !!
    Posts
    198
    Not this type of game a graphical game may be by using Direct X....or something like that.....

    ßädbö¥ Rü£z

    ICQ # : 204178672
    AOL SN : Badboy9jan
    badboy9jan<img src="images/smilies/s...g" />gmail.com

  6. #6
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    Originally posted by Electroman
    ßädbö¥: you reckon if you made a game anyone would run it?? http://www.vbforums.com/showthread.p...hreadid=254491
    Atleast he doesn't use as many accented characters.


  7. #7
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    Well, you better get comfy. I estimate that it will take about 1000 lines for C++ (depending on depth and what you are doing,) so I'm thinking about 750 for VB.

    How about Tetris? That sounds simple until you realize that it takes on average about 4500 lines. (Source: Game Programming for Dummies )

    My point: games are not simple.
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  8. #8
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    What kind of game do you want to make.... if you want to learn DX you should learn DX before trying to make a game in it..

  9. #9
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Here is a small unfinished game I made in Dx when I started.......look at it...the code is kind of crap, but should give you an idea...think it is about 1000 lines....if I am not remembering wrong...

    http://vbforums.com/showthread.php?s...light=opinions


    I have one on 65000 lines to not using Dx if you are intrested...

  10. #10

    Thread Starter
    Addicted Member ßädbö¥'s Avatar
    Join Date
    Jul 2003
    Location
    I Lost somewhere !!
    Posts
    198
    Thnx Guys.... but i need source code...
    NoteMe if u give it to me then i think it will b very usefull for me
    thnx again....
    Last edited by ßädbö¥; Aug 1st, 2003 at 02:25 AM.

    ßädbö¥ Rü£z

    ICQ # : 204178672
    AOL SN : Badboy9jan
    badboy9jan<img src="images/smilies/s...g" />gmail.com

  11. #11
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    Why don't you try the tutorial that comes with DirectX?
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  12. #12
    Fanatic Member robbedaya's Avatar
    Join Date
    Jul 2002
    Location
    Belgium
    Posts
    872
    Originally posted by Darkwraith
    How about Tetris? That sounds simple until you realize that it takes on average about 4500 lines. (Source: Game Programming for Dummies )
    It only took me 1113 lines
    - Use the thread tools to Mark your Thread as Resolved when your question is answered.
    - Please Rate my answers if they where helpful.

  13. #13
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    Originally posted by robbedaya
    It only took me 1113 lines
    Depends how many ":"'s you use
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  14. #14
    Fanatic Member LITHIA's Avatar
    Join Date
    Dec 2002
    Location
    UK, England
    Posts
    575
    hes like this in all his other posts aswell...

    BadBoy i dont believe your an adult

  15. #15
    Fanatic Member robbedaya's Avatar
    Join Date
    Jul 2002
    Location
    Belgium
    Posts
    872
    Originally posted by Electroman
    Depends how many ":"'s you use
    no ":"s, don't like them.
    - Use the thread tools to Mark your Thread as Resolved when your question is answered.
    - Please Rate my answers if they where helpful.

  16. #16
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Originally posted by ßädbö¥
    Thnx Guys.... but i need source code...
    NoteMe if u give it to me then i think it will b very usefull for me
    thnx again....

    Oooops....I though the source was there....I will post it as soon as I find it...

  17. #17

    Thread Starter
    Addicted Member ßädbö¥'s Avatar
    Join Date
    Jul 2003
    Location
    I Lost somewhere !!
    Posts
    198
    Thnx NoteMe.... waiting 4 ur reply...

    ßädbö¥ Rü£z

    ICQ # : 204178672
    AOL SN : Badboy9jan
    badboy9jan<img src="images/smilies/s...g" />gmail.com

  18. #18
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Here it is...I didn't test it...so I hope all the files are here.....I also found a couple of other more or less finished games that I have added. Feel free to learn from them but don't copy the source or sell it or what ever....

    http://www.klubbscenen.com/bergen/div/Defender.zip


    http://www.klubbscenen.com/bergen/div/SnakeDX.zip


    http://www.klubbscenen.com/bergen/div/Ladybug.zip

  19. #19

    Thread Starter
    Addicted Member ßädbö¥'s Avatar
    Join Date
    Jul 2003
    Location
    I Lost somewhere !!
    Posts
    198
    Thnx NoteMe....
    I think this will help me....

    ßädbö¥ Rü£z

    ICQ # : 204178672
    AOL SN : Badboy9jan
    badboy9jan<img src="images/smilies/s...g" />gmail.com

  20. #20
    Fanatic Member robbedaya's Avatar
    Join Date
    Jul 2002
    Location
    Belgium
    Posts
    872
    Originally posted by LITHIA
    BadBoy i dont believe your an adult
    Should he be an adult??? If He's not, i think it"s great that he's allready interested in programming. I think you'd be surprised how many non-adults are on this forum.
    - Use the thread tools to Mark your Thread as Resolved when your question is answered.
    - Please Rate my answers if they where helpful.

  21. #21
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    I don't look at my self as an adult...

  22. #22
    Hyperactive Member
    Join Date
    Jan 2003
    Location
    The Netherlands
    Posts
    386
    BadBoy i dont believe your an adult
    Why would it matter if he's an adult or not?

  23. #23
    Fanatic Member LITHIA's Avatar
    Join Date
    Dec 2002
    Location
    UK, England
    Posts
    575
    if u had read previous posts with him, alot of other peeps and me, u wud understand

  24. #24
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    I don't want to crap on the forum, but if you're seriously considering making games, SDL + C++ all the way!

    DirectX relies on hardware way to much which can cause soo many problems, OpenGL is just alot better and more stable.

    SDL is a library/DLL you can incorporate with your C++ projects that make OpenGL sooooo much easier. With not alot of code, you can make things move on the screen with a background images with opengl.

    Sounds to me you just want source code to play with and modify, which won't teach you want you need to know and you'll get into the habit of copying and pasting code others have done and then say you made a game.

    I just don't think VB and computers themselves are good enough to code games in VB right now. The VB language is just so much slower and not as optimized as C++, as well as the .NET crap that will slow everything down.

    Just a thought

  25. #25
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    But I still think that game programming in VB can be a good way to start.....you will never see Doom 3 in VB, but if you want to learn you can learn a lot by starting off in VB.

    OGL is a gret thing, but you have to use other libraries for sound, multiplayer etc. You don't need that with DX. An other thing that is great with DX is that there is one new version more or less every year. Can you say the same thing woth OGL.

    And you are talking about that you don't have to write that many lines to make something move on the screen. But what will that help. If you want to make a real game, you will have to have the same planning and just as many lines of code in the end. In DX you have a lot of initialization in the start of the code. But that is code that you write and forget. If you have written it once you don't have to write it any more. Just copy paste. If you hate this so much why don't leave C++ and Vb alone and start with DarkBasic in stead...but once again. The finished game will have more or less the same amount of lines in the end....

  26. #26
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    Yes VB can be a good way to start off, but if he ever wants to be a game designer/programmer later on as a job, he will need to learn C++ and VB could get bad habits stuck in his head..... some people are like that and others have no problems going form VB to C++.... just really depends on the person.

    DX has alot of capabilities, but if a problem happens, it could take a good while to figure it out and it won't work on all video cards. While you may need other libraries to do other things in OpenGL, you can just use SDL which allows OpenGL to be implimented and used so easily as well as having many video, sound and input capabilities. Would be nice if SDL was usable with VB, that would be something neat to play around with...

    Not exactly sure why you say this though....
    If you hate this so much why don't leave C++ and Vb alone and start with DarkBasic in stead

  27. #27
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    Well, this is getting heated. Oh well, time to enter the fray.

    DirectX relies on hardware way to much which can cause soo many problems, OpenGL is just alot better and more stable.
    I agree that DirectGraphics relies on hardware a lot more than OpenGL, but if you are on a Windows platform and you have the latest drivers, then its no problem.

    An other thing that is great with DX is that there is one new version more or less every year. Can you say the same thing woth OGL.
    Remember when DX 8 came out and combined everything into one. After that version, hardware rendering for newer objects did not work on my Voodoo 5. OpenGL (at version 1.4 but I heard that there is a 2 in the works) still works on my system.

    The moral of the story: (1) newer does not mean better and (2) work within the systems of your target audience.

    Finally,
    And you are talking about that you don't have to write that many lines to make something move on the screen. But what will that help.
    Its the tradeoff between implementation speed and processor cycles. They are usually inversely proportional. If you are a novice to game design, I would say VB is the way to go because it is easier to use. If you are serious in your undertaking, then machine code is the limit!
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  28. #28
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Originally posted by kasracer

    Not exactly sure why you say this though....

    What did you not get??? It's the truth...

  29. #29
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    In DX you have a lot of initialization in the start of the code. But that is code that you write and forget. If you have written it once you don't have to write it any more. Just copy paste.
    If you were doing this in C++, wouldn't you use an Object Oriented Design?

    Also, what is DarkBasic?
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  30. #30
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    Originally posted by NoteMe
    What did you not get??? It's the truth...
    It sounded like you thought I really hated C++ and VB and was just whinning.....

  31. #31
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Nope then you got it wrong....but you did whine (SP?) about all the extra code before anything happend on the screen. Yes you will have some lines in DX....but you also have a lot of lines in C++, and if you can't handle these small lines then why not just use DarkBasic....

  32. #32
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Originally posted by Darkwraith
    If you were doing this in C++, wouldn't you use an Object Oriented Design?

    Also, what is DarkBasic?

    Of course you would make it OOP, C++ is OOP and you would be a foul if you didn't take advantage out of it...then the game developers could have stayed with C. But if you are making a big game in VB you should to take advantage of OOP. If not the game will be so big and difficult to handle and the programming will go slower and slower every day.....



    [Edit]
    DarkBasic is a "VB/DX-language" clone, that made only to make games. It combines the best from both worlds, and is only meant to be used on games. But what is the purpose of a language like that....

  33. #33
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    I don't like DarkBASIC that much, I tried it once (quite a while ago) and I didn't like the way it works its much easier to use normal VB and Dx then DarkBASIC. If your confident with VB then it would be a step backwards to use DarkBASIC, just my opinion .
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  34. #34
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    I know there was a lot of issues in the start with the language. But after the professional version came out, it has become a great language for game developers. Jonatan S. Harbour has written a book on it (the same author as the DX book for VB) so there is probably something to get out of it....but a language that is only meant to be made games with is silly in my opinion....

  35. #35
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    Yea I think the version I used seemed to be a lot like VB5 and there were little things that you couldn't do that you could in VB, I suppose it is a ok way to learn game programming but I get want you mean by it being a silly idea .
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  36. #36
    Fanatic Member LITHIA's Avatar
    Join Date
    Dec 2002
    Location
    UK, England
    Posts
    575
    i hated dark basic when i tryed it.

    Its interface sucked (it was full screen)
    I didnt like the way you used it
    And in general I hated it

    And i am talking in past tense because i dont know what it is like today, unlikely to be much different if u ask me... stick with VB

  37. #37
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    If you didn't use the professional version....It's diffrent.......trust me....

  38. #38
    Fanatic Member LITHIA's Avatar
    Join Date
    Dec 2002
    Location
    UK, England
    Posts
    575
    how different? Was it full screen?

  39. #39
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    Personally, I like C++ for game programming because it is quick (albeit a little laborious at times.) Also, C++ has the feature of dropping into assembler to crank out even more speed.

    DarkBasic looks like it might be good for game programming theory, but it does not look like something that I would take great strides to learn.
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  40. #40
    Hyperactive Member
    Join Date
    Jan 2003
    Location
    The Netherlands
    Posts
    386
    I don't think that I'll ever get as comfortable with C as I am with VB. Making big programs in it is really a pain, nevermind a game.

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