Clean Up Code

posted in The XNA Struggle
Published April 21, 2008
Advertisement
So today I spent most of my time cleaning up the client code to my little chat app. Anyways I hate cleaning when I know I could be comming up with something thats alot funner but got to keep priorties straight. So I got the main loop down to just about 20 lines with ever thing else outsourced to a header and c files.

I also added in support for if checks on the text that the server receive's from the client apps. This will setup the system so that when a user types in say /T EXIT it will kill the users session. Some others I plan on using later ofcourse is /T JUMBLE for a jumble game that the whole chat will get to have fun with. Possibly with scores but then if I dont included scores whats the point right :D?

I was able to get pretty much all the house keeping done. So tomorrow I think i'll start on the exit command and if that doesnt take to long perhaphs even start the jumble split.

My users also want me to add in color so Ive set aside a field in the user struct mainly for this. See if we cant squezze in the finally calls to the setconsolecolor function from windows. Ive already got the handle declared so shouldn't take to much. Ok more to come later.
Previous Entry Chat Update.
Next Entry Checks and Balances
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement

Latest Entries

Puppy

819 views

UserInfo File

847 views

Vista to XP :P

966 views

Clean Up Code

855 views

Chat Update.

703 views

Side step.

797 views
Advertisement