Archived

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

SSJCORY

Need good source code.

Recommended Posts

SSJCORY    100
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
RanBlade    731
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
SSJCORY    100
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
countermind    122
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
Beer Hunter    712
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
PhilVaz    144
<< 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