DirectX VB6 Platform Style Game
DirectX VB6 Platform Style Game
DirectX VB6 Platform Style Game
DirectX VB6 Platform Style Game
DirectX VB6 Platform Style Game
DirectX VB6 Platform Style Game DirectX VB6 Platform Style Game DirectX VB6 Platform Style Game DirectX VB6 Platform Style Game DirectX VB6 Platform Style Game DirectX VB6 Platform Style Game DirectX VB6 Platform Style Game DirectX VB6 Platform Style Game
DirectX VB6 Platform Style Game DirectX VB6 Platform Style Game
DirectX VB6 Platform Style Game
Go Back  Xtreme Visual Basic Talk > > > > DirectX VB6 Platform Style Game


Reply
 
Thread Tools Display Modes
  #1  
Old 08-27-2012, 10:55 AM
RevertiveDeath RevertiveDeath is offline
Newcomer
 
Join Date: Jul 2012
Location: London, ON, Canada
Posts: 21
Default DirectX VB6 Platform Style Game


After searching numerous amounts of threads on different forums I have found tutorials, un-answered threads and a bunch of semi-helpful lines of code but I need more concrete answers.

I am planning on creating a 2d platform shooter in which your character moves left to right along a massive scrolling background. I initially completed most of this using alpha blending but, even when I chopped the massive picture into 2000 pixel wide chunks, alpha blending became too slow and eventually I ran out of available ram (out of 8gigs).

So here come the questions:
1) Does anyone have an easy and detailed starter project for Direct X?
2) How can I paste my images and backgrounds on properly?
3) An example of the above questions
4) Drawing text to the screen?
5) Direct Sound usage and code

Please don't ask me to view another topic. I would like this one answered fully because, first of all, it would be so much easier for me. And, a complete answer to all of my questions would be easier for other people who want to learn direct X in vb6 like me.

Any helpful answers would be appreciated!
Reply With Quote
  #2  
Old 08-27-2012, 08:05 PM
hDC_0DirectX VB6 Platform Style Game hDC_0 is offline
Contributor

* Expert *
 
Join Date: Feb 2004
Posts: 559
Default DirectX under VB6..easy?

Quote:
I need more concrete answers.
Have you tried any masonry or stone-workers forums?
(sorry I couldn't resist a little "concrete" humor).

Quote:
Originally Posted by RevertiveDeath
So here come the questions:
1) Does anyone have an easy and detailed starter project for Direct X?
2) How can I paste my images and backgrounds on properly?
3) An example of the above questions
Easy is always a relativistic term.
..and wouldn't "more detailed" = less easy?
(more code to try and understand)

What version of DirectX were you planning on using?

Since there is no support for DX10 or DX11 under VB6 (AFAIK),
and since DX9 under VB6 would probably require a very
special configuration (and maybe a typelib),
I'm going to assume your main choices (options) are:
1.) DirectX7
2.) DirectX8

For DirectX7 I would say the best DirectX7 sidescroller on the xvbt forum
is probably Roderick Rivero's (aka HotrodX) Project Mario attached to this post.

For DirectX8 the most developed code on the xvbt forum
is probably Chokamir's ChokaEngine in this thread.

Back in the old VB6 days a lot of complete (with graphics) DX8 demos
couldn't be uploaded because of the file size limitations back then.

Since that time a lot of the old DX8 examples have gone away.
(i.e. they are no longer available online in the original places I got them --
like Simon Prices old site).

So I dredged thru my hard drive
going through and sorting out those that:
1.) Would run without errors
2.) Wouldn't lock up my computer once run
3.) Had a way to end program (using Esc key) when running full screen (un-windowed).

Alas, the forum still has does have some upload size limits
and so my selection of DX8 demo uploads
still had to fit under those current file size upload limits.
I don't know how much they will help with your sidescroller
but it's nice to have a few of the old VB6 DX8 samples
(that actually work), available somewhere on the forum.

Note:
By "work" I mean once you have the appropriate
DirectX dlls installed/registered,
(hopefully using the special debugging versions of DirectX,
in the DX7 and DX8 SDKs that Microsoft use to provide),
and properly referenced inside the VB6 project.

Plus of course, your computer's video card needs to support
the type of DirectX code you are trying to run.

This isn't usually an issue these days
but back in the old days there were still a lot of
video setups that could barely do
T & L (transform and lighting) type 2D DirectX
using Intel on motherboard "integrated graphics" chips,
(DX games had to use special code to test what
DirectX capabilities the video card supported).

Quote:
Originally Posted by RevertiveDeath
4) Drawing text to the screen?
5) Direct Sound usage and code
There's also:
DirectX4VB
..which includes:
DirectDraw: Drawing Text
DirectX 7: DirectMusic
old TD thread with code attachment: Using DirectX 7 to play sounds
DrunkenHyena - D3D tutorials
(which includes 3D font and CD3Font - you can also go the
LMNO Bitmap Font route).
The DX8 dhFastFont code download is still available via the Internet Archive Wayback Machine.


If you had any plans on using OpenGL:
NeHe's OpenGL 48 Legacy tutorials are available off the main page.
Note: The VB6 code is available at the bottom of each tutorial page
once you click through to one of the individual lesson pages.

I wish you the best of luck with your project, however..
Quote:
Originally Posted by RevertiveDeath
And, a complete answer to all of my questions would be easier for other people who want to learn direct X in vb6 like me
..just to let you know there's not a lot the "other people"
still looking to do VB6 DirectX coding these days.

If you take a look at the number of
VB6 /DirectX sub-forum xvbt threads per year,
it has dropped off (since about 2009)
to less than 1/2 a dozen posts for each 12 month period .

The xvbt forum still has a great deal of archival material
but I wouldn't expect a lot of massively developed code samples
to be popping up in this sub-forum going forward.
Attached Files
File Type: zip SP_DX_3d_Paradise.zip (1.38 MB, 76 views)
File Type: zip DX8_Grass_Demo_Windows.zip (373.1 KB, 38 views)
File Type: zip DirectX-3D_Room.zip (14.0 KB, 25 views)

Last edited by hDC_0; 08-27-2012 at 09:13 PM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
DirectX VB6 Platform Style Game
DirectX VB6 Platform Style Game
DirectX VB6 Platform Style Game DirectX VB6 Platform Style Game
DirectX VB6 Platform Style Game
DirectX VB6 Platform Style Game
DirectX VB6 Platform Style Game DirectX VB6 Platform Style Game DirectX VB6 Platform Style Game DirectX VB6 Platform Style Game DirectX VB6 Platform Style Game DirectX VB6 Platform Style Game DirectX VB6 Platform Style Game
DirectX VB6 Platform Style Game
DirectX VB6 Platform Style Game
 
DirectX VB6 Platform Style Game
DirectX VB6 Platform Style Game
 
-->