-
Dec 25th, 2001, 01:54 PM
#1
Thread Starter
Junior Member
GO check out my Mega BitBlt game Tutorial!
Hi all, I'm finally finished my BitBlt game tutorial. Many people wanted a good one. This one is GOOD! It is easy to fallow, and it teaches you as you go along. It is a 17 easy lesson tutorial that will show you how to make a BitBlt game with( Collision detection, AI, Animation, Sound and more!) Plus I have included a Sample Game. The game is basicly the whole tutorila put together. So go download it NOW at
www.geocities.com/mman76dev
In return I want YOUR feedback
Thanks!!!
-
Dec 25th, 2001, 02:35 PM
#2
PowerPoster
hm... let's see...
(aha, you stored it at: C:\Program Files\DevStudio\VB\BitBltTut ...)
-
Dec 25th, 2001, 02:42 PM
#3
PowerPoster
*sigh* you can't programm at all can you?
So what does this timer do???
VB Code:
Private Sub Timer1_Timer()
If PicGo1.Visible = True Then PicGo1.SetFocus
If PicGo2.Visible = True Then PicGo2.SetFocus
If PicGo3.Visible = True Then PicGo3.SetFocus
If GoPic4.Visible = True Then GoPic4.SetFocus
If GoPic5.Visible = True Then GoPic5.SetFocus
If GoPic6.Visible = True Then GoPic6.SetFocus
If GoPic7.Visible = True Then GoPic7.SetFocus
If GoPic8.Visible = True Then GoPic8.SetFocus
If GoPic9.Visible = True Then GoPic9.SetFocus
If GoPic10.Visible = True Then GoPic10.SetFocus
If GoPic11.Visible = True Then GoPic11.SetFocus
If GoPic12.Visible = True Then GoPic12.SetFocus
If GoPic13.Visible = True Then GoPic13.SetFocus
If GoPic14.Visible = True Then GoPic14.SetFocus
If GoPic15.Visible = True Then GoPic15.SetFocus
If GoPic16.Visible = True Then GoPic16.SetFocus
If GoPic17.Visible = True Then GoPic17.SetFocus
If S1 = True Then NextStep
If S2 = True Then nextStep2
If S3 = True Then NextStep3
If S4 = True Then nextStep4
If S5 = True Then NextStep5
If S6 = True Then NextStep6
If S7 = True Then NextStep7
If S8 = True Then NextStep8
If S9 = True Then NextStep9
If S10 = True Then NextStep10
If S11 = True Then NextStep11
If S12 = True Then NextStep12
If S13 = True Then NextStep13
If S14 = True Then NextStep14
If S15 = True Then NextStep15
If S16 = True Then NextStep16
If S17 = True Then NextStep17
End Sub
'Note: This all changes the bottom "Next step" picture..
'no it's not only 1 picture, for each step there's the
'same image in another PictureBox
Not even for the tutorial program u use a loop?? *sigh* And why the hell do you use StretchBlt???
I can't believe it *sigh*
*runs far away*
-
Dec 25th, 2001, 02:45 PM
#4
Thread Starter
Junior Member
Reply
Fox, if you don't like it then don't use it at all. But maybe some people will find use of it. Remember, I don' care how my code looks like, no one should even need to look at it. It's all in the tutorial.
-
Dec 25th, 2001, 02:47 PM
#5
PowerPoster
Sure, but you teach people to use StretchBlt, and even the tutorial flickers hell...
-
Dec 25th, 2001, 03:50 PM
#6
Thread Starter
Junior Member
Reply
The tutorial flickers? Not for me.
-
Dec 25th, 2001, 05:20 PM
#7
Mman, have you got a NT/2000/XP computer? The timer resolution is far better there than on a Win9x ( 1000 ticks/second vs. 15 ticks/second or something like that...)
All the buzzt
CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Dec 25th, 2001, 06:16 PM
#8
Thread Starter
Junior Member
WIN
I have Win 98. But the tutorial is ment to give you an example. Once you finish it, you can make your game fit your needs!
-
Dec 26th, 2001, 11:15 AM
#9
Tutorials should always use the best coding sytle you can possibly squeze out of yourself, and teach even basic design. NextStep17? What the H*** is that? Timers? Called Timer1, no less. As Fox said, you dont know the first thing about game programming.
As to no one ever having to look at your code... Well, that just a load of crock. Most everyone will be peeking into your code to see how you accomplished something or other. Very likely, they will get lost, and never return. If they dont, youve scarred them, and put terrible game programming practices like Timers into thier heads. And of course, if all of that code is in the tutorial, just reading it is a terrible thing.
Z.
-
Dec 26th, 2001, 09:24 PM
#10
Thread Starter
Junior Member
Yes, I don't know game prgramming, I can't make anything, my tutorial sucks. Right, then why did freevbcode.com rate my tutorial as *excellent code??? Know that, thank you. Next question.
-
Dec 27th, 2001, 02:33 AM
#11
Fanatic Member
Appologies for everything,
But I must admit that a much heavier burden is placed on programmers these days... there are "standards" and "styles", so to say "live the life" in some way.
I dont want to comment your code but it seems that "we, the programmers" dont care whether or not the code works, we just care that it is "slick" in its own way and that "you, the programmer" use your "best" example as in, the simplest way to get something done. Sure we can all go around the world just to get to the grocery store but wouldnt it be easier to just walk accross the street?
With all due respect, your code is "excellent" but it doesnt show how well you program, it doesnt look like an "example" of your "skillz". Maybe its because of time constraints... maybe.
Regards,
MoMad
-
Dec 27th, 2001, 09:15 AM
#12
Addicted Member
Thanks
Yes, acutally it is because of lack of time. I only had 2 days to do it. Because, I now have to study for exams.
-
Dec 27th, 2001, 11:46 AM
#13
Good Ol' Platypus
What the people here are getting at is expandable and reusable code. Your code will only work one way, changing something in the tiniest bit will cause it to fail, not to mention how hard it would be to track errors. Basically in tutorials good coding practice is a must. Eg, using Arrays.
Basically, instead of focusing on the code even you might want to focus on reusable ideas and things that make it easier, even theory. Theory is boring, people will get bored, but they will have a better understanding in the end.
Not trashing your tutorial, just these are things to consider when you next write one.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
(Just a heads-up)
-
Dec 27th, 2001, 11:56 AM
#14
I will never visit freevbcode now.
You have to worry about Sytles, etc, these days, as MoMad said. Its all about maintainability, and reusability. Only about half your worth as a programmer is if your code works. The other half is your coding style. Games that use timers have horrible style. Not renaming your timers is worse. Lack of comments on almost every single line is fairly bad (i dont do this, myself).
Dont get me wrong here. Ive written some stuff you would cry to read. All i am saying is that, if you are going to write a tutorial on even beginning game programming, you should not be teaching timers, and other bad programming practices. If you look at other game programming books, that take you from nothing, to a game, you will see that they start off by teaching the technology (in your case BitBlt, or StretchBlt), then the basic structure of a game (the game loop, update, and draw functions). Then they will get more in-depth, and teach a bit about AI, a bit more about drawing, maybe some sound, each time showing either code, or pseudo code.
And, of course, any tutorial's source code should be easy to follow, even if you must sacrifice on execution speed, or the time you spend writing it. Comments are a must.
Z.
-
Dec 27th, 2001, 01:24 PM
#15
Thread Starter
Junior Member
Ok
Ok thanks, I'll keep that in mind. (It was my first tutorial)
I now see why you hate timers so much. I'm remaking my 3D Game and I took out all the timers and replaced the movement parts with API calls. - It runs like 4x faster now
-
Dec 27th, 2001, 03:22 PM
#16
so does anyone have a good tutorial then? hehe...
-
Dec 27th, 2001, 03:45 PM
#17
You will be hard pressed to find a good game programming tutorial, and it is probably worse for VB programmers. You can find tutorials on some of the subsets of games, like the graphics, and the sound, but in the end, you will end up putting together things you learn from different sources.
-
Dec 27th, 2001, 04:55 PM
#18
PowerPoster
yep..
and it's simply impossible to write a good tutorial in 2 days ... I'm still working on mine, well I really have no time and therefore I'm stuck at the moment, but the work I spent on it is already more than a week.
http://fox.acky.net/vb/english/coding/tutorial/
-
Dec 27th, 2001, 05:10 PM
#19
Fox tutorial are great but no tutorial for Direct X FOX do tutorial for DirectX!!!
-
Dec 27th, 2001, 07:39 PM
#20
Good Ol' Platypus
Hehe, yeah do a DirectX one, see how far you get
Nah, I'm sure you can do a good one!
Heh, anyway, I have a tutorial that deals solely on BitBlt and a form of Masking that allows you to "colour dip"... See it here:
http://vbden.tripod.com/articles/invmask.htm
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
(Just a heads-up)
-
Dec 27th, 2001, 07:42 PM
#21
Good Ol' Platypus
*Laughter*
Fox...Yes, I am death! Mwahahaha! Hehe, brush up on your english
Once again I'm jokin'!
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
(Just a heads-up)
-
Dec 27th, 2001, 07:57 PM
#22
Thread Starter
Junior Member
Question
Alright HOT SHOTS, now that you'v insulted my tutorial , why don't you tell me what a 3d modeller should have. Not to advance though. What would be some helpfull features in a program that could only read and write .x files?
Thanks.
-
Dec 27th, 2001, 08:07 PM
#23
Customizable views, vertex placement, face creation, should start you off well.
Z.
-
Dec 27th, 2001, 08:08 PM
#24
Getting the 2D views going should be a good challenge.
Z.
-
Dec 27th, 2001, 08:14 PM
#25
Thread Starter
Junior Member
???
2D Views? Do you mean a few different windows with different camera angles?
-
Dec 27th, 2001, 09:55 PM
#26
Most 3d modellers will have 3 2d views, and a 3d view area. The 2d areas will disregard a certain coordinate (x, y, or z), and use the remaining 2 coordinates to draw a 2d point.
Z.
-
Dec 27th, 2001, 10:20 PM
#27
-
Dec 28th, 2001, 05:13 AM
#28
hey sastraxi, tried a bunch of stuff with bitblt but for some reason it copies only the shape of the original image, but not the colours (copies the shape and the background colour of the form). what's the problem? thanks!
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
|