Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 979 Bytes

README.md

File metadata and controls

20 lines (12 loc) · 979 Bytes

Slime Battle System Unity Sample

A sample Unity project that utilizes the SlimeBattleSystem library.

Unity Sample Gif

To run, just clone this repo and open it with Unity version 2021.3.5f1 or later.

This project currently features 2 example scenes that allows the player to fight a Slime or a Skeleton. I also included the ability to cast Hurt or Heal, use an Herb, and attempt to flee from combat. The combat logic is handled by the SlimeBattleSystem and takes very few liberties (eg. handling item drops).

The combat loop can be found in BattleController.cs.

All battle system methods can easily be accessed via the SlimeBattleSystem namespace:

using SlimeBattleSystem;

...

var orderedParticipants = BattleSystem.DetermineTurnOrder(participants);