Skip to main content
GameDev.net gamedev.net
🔒 Locked

need game code

Started by jimiwa Feb 29, 2004 at 7:45 AM 4 replies 450+ views
Original Post
jimiwa
jimiwa
I want to write a game in Visual C# .net or Visual C++ .net using Direct Draw (DirectX 9) . Could anyone give me some code to a VERY simple game?
Jower
Jower
DirectDraw got removed in DirectX 8
You can however render 2D in Direct3D
circlesoft
circlesoft
There are not many actual games out there with source code that I know of, never-the-less a simple one. Most of the time, a demo or tutorial focus on an individual aspect of a game (for example, culling, or playing an mp3, or getting mouse input).

However, you may be able to find some games at the GD Showcase. Also, the SDK comes with a simple game that implements most of the DX interfaces.

If you need some more complicated games (in the future, perhaps), the source code to many commercial games (like the quake series) is freely available. You can find a lot of those here


Dustin Franklin
Mircrosoft DirectX MVP
porthios
porthios
quote:
Original post by Jower
DirectDraw got removed in DirectX 8
You can however render 2D in Direct3D


Did it get removed in DirectX8? No it did not.

Microsoft just stopped updating DirectDraw, so what we got in DirectX7 for DirectDraw is what we may have forever. It''s still there (or at least still in DirectX8, haven''t used DirectX9) but it''s more of a "deprecated" feature.

cowsarenotevil
cowsarenotevil
quote:
Original post by porthios
quote:
Original post by Jower
DirectDraw got removed in DirectX 8
You can however render 2D in Direct3D


Did it get removed in DirectX8? No it did not.

Microsoft just stopped updating DirectDraw, so what we got in DirectX7 for DirectDraw is what we may have forever. It''s still there (or at least still in DirectX8, haven''t used DirectX9) but it''s more of a "deprecated" feature.




Not quite. The DirectX 8 SDK/runtime includes all prior versions of DirectX, but you have to link to DirectX 7 (not 8/9) to use DirectDraw.

<- Cow Soft, free software I''ve made
"Unfortunatly, when I sent the email, instead of writing "Best Regards" I ended up writing "Best Retards." - boolean
-~-The Cow of Darkness-~-
c t o a n
c t o a n
In DirectX 8 and above there is no DirectDraw. It''s all been merged in DirectX Graphics (which is 3D). To use DirectDraw, you must query the DirectX COM object (using QueryInterface or download the DirectX 7 SDK) for v7, otherwise it won''t work.

Chris Pergrossi
My Realm | "Good Morning, Dave"
Chris PergrossiMy Realm | "Good Morning, Dave"

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.