Saturday, October 1, 2011
Conquer Bar
I'll be dropping the conquering bar in the drop-box. It is the indicator as to which side is winning. Simply put, it takes in the fighting power of both sanity and insanity, and moves the slider in accordance to which side has more fire-power. Functions beyond that should be self-explanatory (email me if you need clarification on anything, my fellow programmers). Do note that the bounds are in place for the slider such that it will not progress the bar past total control for either side, so be careful when messing around with those (they are constant values relative to the object, so it should be easy to spot). There are a few tests in the code for ease of use when testing in isolation. They are located in the update function in the form of "update_bar(int sanity_power, int insanity_power)." They're commented out for now, but feel free to use them as you will. Cheers!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment