2D Scrolling game using DirectDraw?

Plasma
04-04-2002, 04:03 PM
Hey...

Pritty much a copy + paste from the Game Programming forum, but...

I am wondering how/where I can find a clean and easy example of a map (tiled map if you wish) but smoothly scrolls (Not block movement, yuck!). Also, where you can move around the screen with a racecar

I am very good with winsock and am wanting to make a racing game in VB, it would be a real challange for me.

The problems I also see is setting X and Y co-ords...

If I have a tile-based map (So textures are all at a set size) then I cant have a smooth scroll, can I?

Can someone help me out please, ive checked planetsourcecode.com but nothing to really help me out, oh and I would PREFER this to be a windowed app (Drawn in a control like a picturebox or something)...

Yeah im asking alot, but any help would be very much appreciated

Thanks heaps,

Andrew.

Possible to do in DirectDraw, and in a window, preferably drawn in a control so I can resize the window and put other controls around it :)

Pookie
04-05-2002, 09:58 PM
This is a good example of smooth scrolling, you can change the speed at which it scrolls to make it a lot faster.

Click here (http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=7958&lngWId=1)

Plasma
04-05-2002, 11:08 PM
Thanks Pookie.

Its not quite what im after, I need a windowed mode (So its drawn in a picturebox or some control) :(

Pookie
04-06-2002, 04:34 AM
Well I'm still new to DirectX myself, so you'll have to wait for good old Squirm to help you out on this one. :cool:

hotrodx
04-07-2002, 08:05 PM
Check out the "PLATFORM.ZIP" file in end of the "2D Side Scrolling Shooter" thread. It's tile-based. It scrolls smoothly. It has a simple parallax background. DO NOT CONFUSE IT WITH "Shooter.zip", "AOTED.zip" & "AOTEDr2.zip". They're picture based scrollers.

Find the *.dat file and open it up with the notepad. You'll see numbers in there. That's the tilemap.

It also has a primitive collision system.

The sprite has no animation. Just a demo.

Later.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum