Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joshalexjacobs/slimebattlesystemsample
A sample Unity project that utilizes the SlimeBattleSystem library
https://github.com/joshalexjacobs/slimebattlesystemsample
csharp dragonquest jrpg rpg unity unity3d unitypackage
Last synced: 5 days ago
JSON representation
A sample Unity project that utilizes the SlimeBattleSystem library
- Host: GitHub
- URL: https://github.com/joshalexjacobs/slimebattlesystemsample
- Owner: Joshalexjacobs
- License: mit
- Created: 2022-07-02T16:57:31.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-11T06:48:51.000Z (about 2 years ago)
- Last Synced: 2023-03-12T09:08:28.222Z (over 1 year ago)
- Topics: csharp, dragonquest, jrpg, rpg, unity, unity3d, unitypackage
- Language: C#
- Homepage:
- Size: 1.57 MB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Slime Battle System Unity Sample
A sample Unity project that utilizes the [SlimeBattleSystem library.](https://github.com/Joshalexjacobs/SlimeBattleSystem)![Unity Sample Gif](https://i.imgur.com/S3mjjGf.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`](https://github.com/Joshalexjacobs/SlimeBattleSystemSample/blob/main/Assets/Scripts/BattleController.cs#L77).
All battle system methods can easily be accessed via the `SlimeBattleSystem` namespace:
```csharp
using SlimeBattleSystem;...
var orderedParticipants = BattleSystem.DetermineTurnOrder(participants);
```