Hack'n'Slash Template
PRESENTATION :
° = bug(go to bottome).
The goal of this project was to made a Hack'n'Slash template, this is a coding project I made on my own.The project mechanics are close to Path of Exiles mechanics because they are realy complete. I used only the Unity base assets(as place holder), I learned a lot about coding during the making of this project : delegates, learned about inheritance, polymorphism, UI and more. There are three main part in this project : the combat system , the inventory system, and the skill tree. °1
THE COMBAT SYSTEM :
Everything that fight possesses a "Units" script wich have a "StatsHolder" a system I made to manage stats on units, each statsholder can reset his stats to 0 or to the stats of another statsholder and add the stats of another statsholder to his. both the skill tree and the inventory have a statsholder and the player(inherant from "Units")'s statsholder will get the stats of both statsholder. Every units will use an attack, a targetingMode and a movementstate(I want to upgrade this for more possibilities like more attacks). Basics enemies will target the player, use the baseAttack and will use a "GoToTargetAndAttack" as movement(wich is more like a behaviour) every attack have a use range °2. Every Units can mitigate damage, converte damage type to another.
THE INVENTORY SYSTEM :
The inventory is made with a "InventoryUI" wich contains a "Inventory" shared with the player, you can store all kind of items in it and there are a equipment slot for each equipment type(2 ring slots), you can equipe items by dragging theme and puting theme in the right equipment slot, you can stack certain items °3.To use usable items like the reforge item right click on it and hold then left click on the equipment item you want to reforge.Equipment items can be normal(0 item mod), magic(3 item mods) or rare(6 item mods)(rarity is not displayer yet on the item tooltip), The base damage of the player is 2 physical damage.The inventory is keeped through the scenes change.
THE SKILL TREE :
The skill tree is an upgraded version of the one I made for another project, much more customizable. It possesses a StatsHolder, you can put and remove points °4, each point have a list of "ItemModifier" that add or change stats on a StatsHolder. The points are keeped through the scenes change, you can moove te skill tree with left click and zoom with mouse wheel.
BUGS° :
1 : The web version's UI is buged hp are not being displayed correctly and the itemtooltip is buged.
2 : Sometime enemis behaviour desactivate.
3 : when you stack items you will also pick the stack.
4 : you can't remove point after scene change.
Status | Prototype |
Platforms | HTML5 |
Author | Yoan lechevalier |
Made with | Unity |
Tags | Project template |
Download
Click download now to get access to the following files:
Leave a comment
Log in with itch.io to leave a comment.