http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

Wise2Food



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Game Programming: Help with textbased RPG in C++



------------------------------------------------------------
GameProgrammer.Com: Game Programming: Help with textbased
RPG in C++
------------------------------------------------------------

By Allen Seitz (Bigal) on Thursday, August 31, 2000 - 10:24
pm:

 If your game looks and works like a MUD ( I'd look at a few
if you don't know what they are ) try using stock MUD code
in your game.  Its usually free but not very well
documented.  Be careful of making every variable global
though.  Sometimes its nessesary, especially in games.  If
the data is often accessed but only by a few functions
declare it in main and pass it to the function.  If lots of
functions access it ( assuming you know how all functions
can alter it becfore it gets to the next one ) then make it
global. Everything else can just be local. For the hero I'd
suggest putting it in main and for the monsters I'd
recommend putting them at the highest level function they're
first used in.

------------------------------------------------------------
 DO NOT REPLY TO THIS MESSAGE!  It is an automatic e-mail
 notification message from the discussion board indicating
 that a new message was posted.  If you do not wish to
 receive further e-mail notification messages from this
 discussion board, edit your user or moderator profile to
 turn off the e-mail notification option.

Use this link to go directly to the discussion:
http://gameprogrammer.com/cgi-bin/comm/gameprogrammer/discus/show.pl?6/24