Allegro.cc - Online Community

Allegro.cc Forums » The Depot » Multi Mini Game Fight

This thread is locked; no one can reply to it. rss feed Print
 1   2 
Multi Mini Game Fight
amber
Member #6,783
January 2006
avatar

Yes, don't give up. :)

When I first wrote NetHulk, the code was a horrible, horrible mess. I've been slowly but surely refactoring and bringing things under control at the same time I've been adding new features. Now the code is only a horrible mess. (See, I got rid of one horrible!)

I'd suggest the first thing to do is try to put duplicated code into function calls. If this would result in a horrible parameter list, see if the scope for some of those variables can't be tightened, or they could be put into a class/struct or even (gasp!) made global.

Allegro Suck
Member #9,230
November 2007
avatar

{"name":"597457","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/d\/b\/db70ed954b0b3ef2bc8800f272463a48.jpg","w":428,"h":268,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/d\/b\/db70ed954b0b3ef2bc8800f272463a48"}597457

=================================================

My First Game

Albin Engström
Member #8,110
December 2006
avatar

Pretty cool for a first game.

I like when people make something different from crappy pong or tetris clone.

Paul whoknows
Member #5,081
September 2004
avatar

{"name":"597484","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/9\/b\/9be332cf649627cdacf3629d8b2bc7fe.png","w":926,"h":393,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/9\/b\/9be332cf649627cdacf3629d8b2bc7fe"}597484

____

"The unlimited potential has been replaced by the concrete reality of what I programmed today." - Jordan Mechner.

Timorg
Member #2,028
March 2002

Now you have seen one of the reasons of my hatred for RapidShit, hence my alternative link.

____________________________________________________________________________________________
"c is much better than c++ if you don't need OOP simply because it's smaller and requires less load time." - alethiophile
OMG my sides are hurting from laughing so hard... :D

Paul whoknows
Member #5,081
September 2004
avatar

Oh I see it now, thanks!

____

"The unlimited potential has been replaced by the concrete reality of what I programmed today." - Jordan Mechner.

 1   2 


Go to: