Using the factory method pattern to spawn in two difference classes of weapons. Polymorphism is used to attack with Weapon class and with the WeaponCreator class. The WeaponCreator class can either be a DwarvenWeaponCreator, a factory that produces dwarven weapons, or an ElvishWeaponCreator, a factory that produces elvish weapons.

StatusPrototype
PlatformsHTML5
Authorgeekguy100
Made withUnity

Leave a comment

Log in with itch.io to leave a comment.