Archived

This topic is now archived and is closed to further replies.

BCB AND NEWBIE GAME DEV

This topic is 5875 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

HI IM A NEWBIE AND AM USING BCB IVE GOTTEN LINKS TO SITES LIKE FOTECH AND OTHER SITES ABOUT BCB AND DX BUT THAT STUFFIS TOO ADVANCED CAN ANYONE HELP ME TO MAKE A TETRIS LIKE GAME OR SOMTHING IN BCB WITH EITHER OPEN GL OR DX FROM A NEWBIE LEVEL A COMPLETE FRESH START? THX SAKIRA10@HOTMAIL.COM

Share this post


Link to post
Share on other sites
All caps is taken to mean that you are shouting. It is all part of what is called netiquette.

If you are a complete newbie, I would try using the components that come with BCB as a starting point. Drop a TImage on your form and draw things onto it using its Canvas.

If you were using Delphi, then I would recommend the DelphiX set of components. They make using DirectX in Delphi very easy. There is no equivalent for BCB as far as I know.

Steve ''Sly'' Williams  Monkey Wrangler  Krome Studios

Share this post


Link to post
Share on other sites
There''s always BCB DirectX...

http://bcbdirectx.sourceforge.net

BCB DirectX uses the Borland/Inprise C++Builder compiler to create a library of RAD components that accelerate DirectX Game development.

[ Michael Wilson | turbo sys-op | turbo.gamedev.net ]

Share this post


Link to post
Share on other sites
Ah, so thats why you email me about how to get it to work, then disappear...
In any case, there isn''t any proper tutorials. Mainly because I HAVE no time. (see. Proper use of CAPS :-))
Anyway, back to the point. To create something like tetris, you will probably need to look at Simple2D (in the examples directory) or say, Animation. Both show you how to get a simple 2d engine up, putting out sprites, etc. Animation also shows you how to get a simple frame animation (an animation with the frames as bitmaps in a texture) working. For tetris, you can search the net, what you need, is the basic algorithm for it. In any language, using any API, the underlying program is the same. It''s just window dressing...
Basically, in Tetris, you need an matrix (i.e. int screen[50][50]) that represents your world. Each int in the matrix represents the block color on the screen (or block texture). Next, every frame, you need to move the current shape down, first erasing it on the screen matrix, then putting it in the right place (one line down). You also must check for collisions. Next, when a line is full, move everything down a line in the matrix. Have a draw function to draw the matrix.
Hey, you have to do something yourself. The draw function, given a matrix of ints or whatever, shouldn''t be to difficult. Try to get that working first. Then add falling blocks, then collisions, then finally the scores and dissappearing lines.
In fact, I may even write a quick game using BCBDXLib of tetris...hmm..
Nope, not enough time

------------------------------
BCB DX Library - RAD C++ Game development for BCB

Share this post


Link to post
Share on other sites
Thx alot man
Your the coolest!!!!!!
I didnt ask you such a big question cause i didnt want to take up your time. But as usual you came through. The great C++ FREAK!
Ill see what i can do.
Thx again 8]

Share this post


Link to post
Share on other sites
Hello

I have another question but if you can pls answer the above also
I make a console app in bcb and the window closes before I can read it
how do I take care of that
I''ve tried the conio hearder and getch() function but it still closes
I also had bcb compile one code and it ran another whats up with that?
I closed all too!!!
scary!

thx again

Sakira

when you buy my game and my signature will be in caps!!!!
MMMUUHAHAHAHAHAHAAAAAAAAA!!!!!!!!!!!

Share this post


Link to post
Share on other sites
I am a fairly advanced BCB programmer and the only DX library I can get to work right is DirectDraw.
I can get Direct3D working in Windowed and Fullscreen but I need to to work using a TPanel. But no one answered my posts and I DON''T EVEN USE ALL CAPS.
Anyway, I would help you, but I have programmed about 5 (10,000+ lines of code) commercial BCB apps and I still can''t get DirectX to "fully" work .

Share this post


Link to post
Share on other sites
DirectX is screwy. The really big problem is the converted library files, which you can find around the net.
As to you, Sakira, where have you been?
To get a console prog to not close you just add in a getch() just before it ends? Right?
Anyway, see ya all later


------------------------------
BCB DX Library - RAD C++ Game development for BCB

Share this post


Link to post
Share on other sites
honds, when you tell DirectDraw or Direct3D the window to copy the output to, specify the handle of the panel, not the form. Also specify the handle of the panel in the DirectDrawClipper. This way the output will be restricted to the panel.

Steve ''Sly'' Williams  Monkey Wrangler  Krome Studios

Share this post


Link to post
Share on other sites
yes ive tried the getch() and added the conio.h alnog with it.
but it still doesnt work
ive even tried to onclude system
and ue the system pause function
no haps

so whats next
point a gun at it?


Share this post


Link to post
Share on other sites