Unity Learn home
0
0
Programming Theory Project
18 views
For my project I made the basic structure of an RPG game.

To showcase Inheritance I made an Enemy class and then 3 child classes > Warrior, Mage, & Archer.

To showcase Polymorphism I made a virtual method in the Enemy class called EnemyAttack(), then each child class overrides the method to have EnemyAttack() function differently for each class type.

To showcase encapsulation I allowed the player to input a name for the player character. The name must be within a range of 0-16 characters or an error message is displayed.

The last pillar abstraction is used everywhere in the code by separating most code into their own methods that could be read easily and reused if needed.

Github repo:
https://github.com/JordanM902/Programming-Theory-Project
Media
1
1