The Great Migration
I finally got around to doing a bit more work on this project!
I decided over Christmas that I was going to spend sometime moving the game to 3D and thus also to Godot v4. As I mentioned in the first post, this
was only going to be the client as I was planning to keep the servers in Godot 3.5 as they were just code so it seemed unecessary to move them to the
newer version...
Well, it turned out that the networking features in Godot 3.5 aren't compatible with those in version 4, so I ended up having to move all the servers across
to Godot 4 as well. Luckilly that didn't take a huge amount of time as a lot of the code which wasn't sending data across the network was reusuable and
only required a few modifications, so that stuff could almost be copied across.
One small addition to the servers was a simple user interface with a few simple buttons to do tasks, such as logging out players.
I also made a simple console display to post status messages in.
The Newish World
While I'm moving everything across to the new version of Godot I'm going to try and keep as much of it the same as possible, so to begin with I recreated
the 2D world in 3D. For the character, I've gone with the Gobot model as it looks nicer than anything I could do at the moment and already has animations,
so I won't need to spend time doing those. The other aspect of the world is that chickens spawn as they did previously, these look a lot worse than the players
as I "modelled" them myself (they are actually just built out of simple 3D shapes).
New Feature!
I might be being generous describing this as a feature, but I also added some basic interpolation for the movement so other players moved more
smoothly. I just keep the previous position for each player and, when I recieve the new position from the server, I save the direction between
the two and then move the player based on that. Once I recieve the new position I just set that as the players current position. The same is also
done with the players rotation and seems to work fine from what I can see with my eyes!