Cleaning up messed up code & work on the battlefields system

The last days I was a.) totally sick and had a little surgery, and b.) I was really annoyed by this project.

Cleaning up

It’s always the same story: While you want to make some progress to be able to look back and be proud of the day’s work, some things get lost or messed up along the way. This happens so with parts of my code. Some methods were on places where they shouldn’t be. Some classes got so big, that I even lost track of what they are doing. Unfortunately, extending classes doesn’t work as good in Godot, as I know it from some projects as a web developer. But what can I say?

Working on the battlefields

A lot of the messed up code was around the Astar pathfinding algorithm stuff. Pathfinding is never fun. Especially if you have huge, huge maps :/ But now, its seems to work way better and even I seperated some methods into shorter, more logical ones.

I also refactored the look of the battle units on a battlefield. It doesn’ look “better”, than before. But at least you can recognize all warriors by their look. This new design if heavily inspired by the awesome game “Battle Brothers”.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *