|
-
Jul 31st, 2003, 08:04 AM
#1
Thread Starter
Addicted Member
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
-
Jul 31st, 2003, 08:10 AM
#2
So Unbanned
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")
-
Jul 31st, 2003, 08:24 AM
#3
Not NoteMe
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. 
-
Jul 31st, 2003, 08:42 AM
#4
Ex-Super Mod'rater
ßä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.

-
Jul 31st, 2003, 09:38 AM
#5
Thread Starter
Addicted Member
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
-
Jul 31st, 2003, 10:16 AM
#6
So Unbanned
Atleast he doesn't use as many accented characters.
-
Jul 31st, 2003, 03:09 PM
#7
Fanatic Member
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.
-
Jul 31st, 2003, 05:16 PM
#8
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..
-
Jul 31st, 2003, 05:17 PM
#9
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...
-
Aug 1st, 2003, 02:20 AM
#10
Thread Starter
Addicted Member
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
-
Aug 1st, 2003, 03:47 PM
#11
Fanatic Member
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.
-
Aug 2nd, 2003, 04:32 AM
#12
Fanatic Member
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.
-
Aug 2nd, 2003, 04:41 AM
#13
Ex-Super Mod'rater
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.

-
Aug 2nd, 2003, 06:20 AM
#14
Fanatic Member
hes like this in all his other posts aswell...
BadBoy i dont believe your an adult
-
Aug 2nd, 2003, 07:05 AM
#15
Fanatic Member
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.
-
Aug 3rd, 2003, 01:58 PM
#16
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...
-
Aug 4th, 2003, 03:05 AM
#17
Thread Starter
Addicted Member
Thnx NoteMe.... waiting 4 ur reply...
ßädbö¥ Rü£z
 ICQ # : 204178672
 AOL SN : Badboy9jan
 badboy9jan<img src="images/smilies/s...g" />gmail.com
-
Aug 4th, 2003, 05:53 AM
#18
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
-
Aug 4th, 2003, 11:41 PM
#19
Thread Starter
Addicted Member
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
-
Aug 5th, 2003, 01:03 AM
#20
Fanatic Member
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.
-
Aug 5th, 2003, 07:11 AM
#21
I don't look at my self as an adult...
-
Aug 6th, 2003, 12:00 AM
#22
Hyperactive Member
BadBoy i dont believe your an adult
Why would it matter if he's an adult or not?
-
Aug 8th, 2003, 01:24 PM
#23
Fanatic Member
if u had read previous posts with him, alot of other peeps and me, u wud understand
-
Aug 8th, 2003, 02:04 PM
#24
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
-
Aug 8th, 2003, 02:11 PM
#25
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....
-
Aug 8th, 2003, 02:26 PM
#26
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
-
Aug 8th, 2003, 04:03 PM
#27
Fanatic Member
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.
-
Aug 8th, 2003, 05:04 PM
#28
Originally posted by kasracer
Not exactly sure why you say this though....
What did you not get??? It's the truth...
-
Aug 8th, 2003, 05:25 PM
#29
Fanatic Member
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.
-
Aug 8th, 2003, 08:34 PM
#30
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.....
-
Aug 9th, 2003, 01:23 AM
#31
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....
-
Aug 9th, 2003, 01:25 AM
#32
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....
-
Aug 9th, 2003, 07:26 AM
#33
Ex-Super Mod'rater
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.

-
Aug 9th, 2003, 09:51 AM
#34
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....
-
Aug 9th, 2003, 01:06 PM
#35
Ex-Super Mod'rater
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.

-
Aug 10th, 2003, 02:31 AM
#36
Fanatic Member
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
-
Aug 10th, 2003, 03:01 AM
#37
If you didn't use the professional version....It's diffrent... ....trust me....
-
Aug 11th, 2003, 02:26 PM
#38
Fanatic Member
how different? Was it full screen?
-
Aug 11th, 2003, 07:11 PM
#39
Fanatic Member
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.
-
Aug 11th, 2003, 08:08 PM
#40
Hyperactive Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|