Joshalexjacobs / SlimeBattleSystemSample

A sample Unity project that utilizes the SlimeBattleSystem library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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);

About

A sample Unity project that utilizes the SlimeBattleSystem library

License:MIT License


Languages

Language:C# 100.0%