It’s my birthday, so I didn’t do a ton today. Mainly what I wanted to do was a bunch of simplification.
So I spent like 8 hours going down this path of simplifying all of my network code, only to find out that all of my network code got like 3x slower.
So I rolled it all back, and went all-in on the existing implementation instead.
Later in the evening I started doing some work to separate out behaviours for different types of units. Player Characters and Non Player Characters were the same thing until tonight.
Eventually, the player’s character, characters of other players, NPCs, and enemies, will all be different things with their own behaviours – but they’ll have code in common.
I had to do all of this to make it so that you can use items on other players, so hopefully tomorrow I’ll take some more steps toward getting that to work.