Jump to content
  • Advertisement

Archived

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

SSJCORY

Need good source code.

This topic is 5307 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Can someone please link me to good source code of a game programmed in c++/w/directx. I can never find the simple ones, I always find one that is 10000 lines. I mean I dont want a link to an rpg i want a link to like a pong game or a tetris game. Thanks, Cory
Favorite Quotes:Gandalf: You shall not pass!|Smeagol: We don''t need you!|Sloth: Hey you guys!|

Share this post


Link to post
Share on other sites
Advertisement
hrm this is stickied to the top of this forum but here you go...

Tetris in a hour




RanBlade
"Passion is what drives you to stay up until 4am fixing that bug that hardly anyone would notice...Passion is where great games come from, if you dont live and breathe games you shouldn't be in the games industry." - Dave Pottinger, Ensemble Studios

[GameDev][C++ Page][Game Tutorials][FreeBSD][HawkNL(Hawk Network Library)][NeHe Productions][Gamedev book's]
[Virtually Online-Books][Mage Tower Ent-My Site]

[edited by - RanBlade on January 4, 2004 3:30:06 AM]

Share this post


Link to post
Share on other sites
No i need it with directx not just windows.



Favorite Quotes:Gandalf: You shall not pass!|Smeagol: We don''t need you!|Sloth: Hey you guys!|

Share this post


Link to post
Share on other sites
quote:
Original post by SSJCORY
No i need it with directx not just windows.



Favorite Quotes:Gandalf: You shall not pass!|Smeagol: We don''t need you!|Sloth: Hey you guys!|





WTF

Share this post


Link to post
Share on other sites
quote:
Original post by countermind
quote:
Original post by SSJCORY
No i need it with directx not just windows.
WTF
He wants a game that uses DirectX. RanBlade linked to one which didn''t use DirectX.

I found this with a quick Google search.

Share this post


Link to post
Share on other sites
<< I can never find the simple ones, I always find one that is 10000 lines. >>

Have you made a Breakout yet? Here is my Breakout with Win GDI and no back buffer. Probably about as simple as you can make it in Win32, its under 1000 lines.

VazBreak.cpp | EXE

In my opinion, you are getting in over your head trying to do a 2D game with Direct3D. I would use Win GDI or DirectDraw. Less set up required. Also I would use straight C and forget object oriented stuff, but that''s a matter of style/preference. There are straight C calls to DirectDraw I found out.

I compiled all the beginning DirectDraw GameDev articles into one text file here

DirectDraw.txt

Phil P

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!