Project developed in the Back-end Module at the Trybe course.
The project goal was to apply SOLID and OOP principles in a Role Playing Game - RPG.
The goal was practice the following habilities:
- the Object-Oriented Programming - OOP principles: Polymorphism, Encapsulation, Data Abstraction and Inheritance
- TypeScript implementations of classes and interfaces.
In Trybers and Dragons - T&D universe almost all beings belong to a specific race.
The races define the caracters features as life points and strength. But there is bestial beings without a race, they are called monsters.
Some beings have energy and by training this energy they receive an archetype that determine their personalities, habilities and world vision.
This universe can be dangerous and some times this beings fight battles.
The class who creates a caracter is called Character
Superclass | Child classes |
---|---|
Race | Dwarf / Elf / Halfling / Orc |
Archetype | Mage / Necromancer / Warrior / Warrior |
Battles | PVP / PVE |
Monster | Dragon |
Interfaces: Energy
Fighter
SimpleFighter
🛠️ Tools:
- Node
- TypeSchipt
- ts-node-dev
- Object-oriented programming (OOP)
Download the code:
git clone [email protected]:queite/trybers-and-dragons.git
Enter the root folder:
cd trybers-and-dragons
Install dependencies:
npm install
All Trybe projects use linters
, Git
and GitHub
.