Posted October 09, 2020 by Balthius
Today marks the first day of commitment to, while not ENTIRELY avoiding tutorials, doing things in a way that are built on best practices learned over the past 6 years. I've got a long road ahead of me, but hopefully through a better step-by-step approach paired with source control as a routine I'll be able to shape this into something people get genuinely excited about.
I've got basic movement fleshed out, 8 direction and decoupled enough that fitting in AI shouldnt be an issue:
> Unity input system(1.0) speaks to PlayerInputController
> PlayerInputController in 90% private and implements an interface (IUnitController)
>IUnitController has a public method (currently just movement) that is called by the character.
> Other IUnitControllers will be usable here to ensure that different inputs(AI being the primary) are respected
I have basic walking animation, and idling. I'll be swapping this out for a "bodypart" system later where each portion sits on a character parent object in order to allow for customization of your character and eventually swappable equipped armor. 8 directions is a bit of extra work especially since I'm not using sprite-mirroring for left and right, but it does provide smoother turning and more visually pleasing diagonal attacking/casting.
The world is currently low on the priority list. Everything will be developed in the sandbox before I even consider moving it out into it's final location.