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
Printable View
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
Best game ever:
VB Code:
Do If Int(Rnd * 10 + 1) = InputBox("I've choosen a number from 1 to 10, guess it.", "Guess the number") Then MsgBox "Right!" Else MsgBox "Wrong!" End If Loop Until vbNo = MsgBox("Play again?", vbYesNo, "Guessing game")
lol!
ßädbö¥: you reckon if you made a game anyone would run it?? http://www.vbforums.com/showthread.p...hreadid=254491
Not this type of game a graphical game may be by using Direct X....or something like that.....
Atleast he doesn't use as many accented characters.Quote:
Originally posted by Electroman
ßädbö¥: you reckon if you made a game anyone would run it?? http://www.vbforums.com/showthread.p...hreadid=254491
;)
Well, you better get comfy. :D 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.
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..;)
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...:D
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....
Why don't you try the tutorial that comes with DirectX?
It only took me 1113 lines :)Quote:
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 )
Depends how many ":"'s you use ;)Quote:
Originally posted by robbedaya
It only took me 1113 lines :)
hes like this in all his other posts aswell...
BadBoy i dont believe your an adult
no ":"s, don't like them.Quote:
Originally posted by Electroman
Depends how many ":"'s you use ;)
Quote:
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...;)
Thnx NoteMe.... :) waiting 4 ur reply...:)
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
Thnx NoteMe.... ;)
I think this will help me....
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.Quote:
Originally posted by LITHIA
BadBoy i dont believe your an adult
I don't look at my self as an adult...:D
Why would it matter if he's an adult or not?Quote:
BadBoy i dont believe your an adult
if u had read previous posts with him, alot of other peeps and me, u wud understand
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 :)
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....;)
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....
Quote:
If you hate this so much why don't leave C++ and Vb alone and start with DarkBasic in stead
Well, this is getting heated. :( Oh well, time to enter the fray. :D
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.Quote:
DirectX relies on hardware way to much which can cause soo many problems, OpenGL is just alot better and more stable.
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.Quote:
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.
The moral of the story: (1) newer does not mean better and (2) work within the systems of your target audience.
Finally,
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! :)Quote:
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.
Quote:
Originally posted by kasracer
Not exactly sure why you say this though....
What did you not get??? It's the truth...
If you were doing this in C++, wouldn't you use an Object Oriented Design?Quote:
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.
Also, what is DarkBasic? :confused:
It sounded like you thought I really hated C++ and VB and was just whinning.....Quote:
Originally posted by NoteMe
What did you not get??? It's the truth...
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....;)
Quote:
Originally posted by Darkwraith
If you were doing this in C++, wouldn't you use an Object Oriented Design?
Also, what is DarkBasic? :confused:
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....:confused:
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 ;).
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....
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 :).
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
If you didn't use the professional version....It's diffrent...;)....trust me....
how different? Was it full screen?
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. :(
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. :(