Auto Food Fight Devlog #6 - Starting Combat


Website: https://autofoodfight.com/ 

Patreon: https://www.patreon.com/autofoodfight

From 06-21-2022

This took quite a while to get going. I spent a lot time looking into different design patterns to figure out what would work best for the combat.

I got a bit too lost in my head and just started tackling it head on at some point. It is a different scene in Unity, but I don't think I'll need a loading screen since it is fairly light on resources at this point. So it should load quickly.

It took a chunk of time to learn the saving and loading options common for Unity. I found a SaveLoad script someone put up on a GitHub repo ( https://github.com/GameGrind/Binary-Save-For-Unity/blob/master/SaveData.cs ) . It basically uses Unity's BinaryFormatter and FileStream serializing. So for now it saves data to a file. There's one for the Store and one for the Player. There's potentially a concern for cheating by editing these, but since it'll be singleplayer initially I don't really mind if people cheat for that.

Since I don't have AI yet, the enemy just copies your team before battle. I wrote some functions to have combat working, but they weren't ready to use by this point.

The next focus is working on actually starting battle and having fighting take place.

Leave a comment

Log in with itch.io to leave a comment.