Debugging-Setting Consoles in Games
- by ShrimpCrackers
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.