Archived

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

jleonardbc

Tricks of the Windows Game Programming Gurus

Recommended Posts

I am reading Windows Game Programming Gurus. I would like to make a 2D pagescrolling game (like MicroMan, if you''ve heard of it). However, the sample in the book uses his BOB engine. I''d like to use plain DirectX to make it. Does anyone know of any examples I can download like this? Can anyone help me out? Is anyone still in school besides me?

Share this post


Link to post
Share on other sites
Ummm... could you clarify a bit? If you want an example of how to use sprites with DirectX, that''s exactly what the BOB engine is. You create offscreen surfaces, blt them to the screen, etc...
I don''t quite follow what you''re looking for.

Share this post


Link to post
Share on other sites
ive played microman a couple of times. (someone hacked it and posted the source on a website, i think). but the way i think it works...is first, it blits a background image to the screen, and then blits the objects to the screen like a tilebased game. and i think it finds the top, right, bottom, and left sides of each object (with a RECT, very simple collision detection) and then doesnt allow the player to move into the objects. (microman wasnt made with DirectX, also. it was made with a API called WAP that is really old). it sounds really complicated, but its not. if you dont know much about directX, i suggest you keep reading TOTWGPG.

by the way, i''d like to talk to the programmer of microman and ask him if there are any secrets. that game is addictive. ;]

Share this post


Link to post
Share on other sites
Hiya,

What I''ve found mostly in the "Tricks of the Windows Game Programming Gurus" is how to use DirectX. The BOB interface uses DirectX, effectively giving you a wrapper to help save you from writing your own.

If you want to write your own DirectX interface--which is probably a good idea if you''re just starting to learn all this stuff--the BOB code (and the book) would still make for a decent reference point

Good luck!

-Krylar

Share this post


Link to post
Share on other sites
That was my point in my post above The BOB engine makes use of the ''native'' DirectDraw commands. If you study the BOB enfgine''s code on the CD, and refer to Chapter 7 in TOTWGPG, you''ll have a great starting point. Also, take a look at the source for Donuts in the DX SDK DirectDraw samples and see how they handle it for a different perspective.

Share this post


Link to post
Share on other sites