View Single Post
Torkell

Stealth Admin

Joined: Jul 2004

Posts: 2,153

Torkell is a forum legendTorkell is a forum legendTorkell is a forum legend

Dec 15, 2004, 01:11 AM
Torkell is offline
Reply With Quote
Quote:
Originally Posted by Monolith
Lets start with the graphics engine. You already have your art assets? Good. Now you need to be able to draw those graphics in your VB application. Unfortunately, this can be a lot tricker than it sounds. The basic Windows drawing functions don't work too well if you're trying to make something with fast moving graphics. If you are, you'll probably want to use DirectX. I really don't know about using DirectX in VB, but I'm sure you're able to.
DirectX 7 and 8 can be used in VB. If you're doing a side-scroller I'd recommend DirectX7 as I don't think 8 includes DirectDraw anymore. It's rather easy to code it, as you include the type library and it then appears as a whole bunch of objects to play with. All you do is give it somewhere to draw (a PictureBox or Form does nicely, but anything with a hWnd will do), and tell it what to draw. The SDK has plenty of examples of using DirectDraw (the Space Shooter project will be worth a look as it has a similar type of engine).
__________________
-- Torkell