Items in video games are very important. They can be tools, weapons, healing items, traps, clothing, armor, ammo, keys, and so on. Items are what the player will interact with the most in your game. Since the items are so often used, it is a good practice to create item classes that can be expanded and used in all possible situations without having to rewrite the class.
In this chapter, we will cover the following topics:
Itemclass that affects the player
Meleeitem class that will affect environments and enemies
Projectileitem class that can be used for items that ...