Game Development Reference
In-Depth Information
See Figure 3-17 for two examples of damage formulas using my new methods.
Figure 3-17. A pair of damage formula examples using methods
Module.method . So, you have Winter.sitva and
Winter.phys , respectively, in the two preceding examples. Compare the expressed methods
with the code listed previously, and you'll see that we utilize every variable within the method
parentheses. For sitva , we have base damage, the MAT multiplier, a, and b, in that order.
For phys , we have the ATK multiplier, a, and b.
As you can see, the code is called in the form
Summary
During the course of this chapter, we covered a great part of the Database. The Database is required to create playable
character, enemies, and items for the player to collect. We created new items for our protagonist to use. In addition,
we touched upon the Region tool and used it to create an area in which the player can engage a newly created troop.
That concludes this chapter. In the next chapter, we will work on fleshing out our game a little more. How, you may
wonder? We'll be adding more locations to the game!
 
Search WWH ::




Custom Search