Debugging-Setting Consoles in Games
Posted
by
ShrimpCrackers
on Game Development
See other posts from Game Development
or by ShrimpCrackers
Published on 2012-10-14T02:40:24Z
Indexed on
2012/10/14
3:52 UTC
Read the original article
Hit count: 259
architecture
Right now I have the graphical and input portions of a console for my game (command parsing hasn't been implemented yet). I was wondering how you would go about making changes to properties in game objects. For example, if I typed in the console:
skeletonMonster maxHP 20
That would change all of the existing in-game skeletons' max hit points to 20. After you parse this information what are some ways to change the value? How can I change the variable(s) without violating information hiding?
I'd like to implement this so I don't have to change variables in the code and recompile every time while playtesting.
© Game Development or respective owner