A lot has changed during that time.
The necessity of changing frameworks arose after I figured out that the input polling system was going frenzy with updates once too many bots were on the map. In fact, it didn't make any sense at all since, what does AI have to do with the fact you're pressing a key on your mouse or keyboard...? Nothing at all. What a baffling bug that was.
So that ate up much of the performance that was needed elsewhere, e.g. rendering, making the game very slow and resource-demanding. The error likely was somewhere deep, deep down in the library I was using and therefore not in my power or knowledge to fix. Restrictions imposed by the libraries' way of handling things were another issue I had.
Thus, instead of having to deal with all these problems (which likely will magnify as the game's development progresses), I decided to switch frameworks instead:
In retrospect, that decision is probably the best thing that could have ever happened to CamoTactics.
I managed to improve the overall visual appearance, for example:
- canon turrets rotating around the correct center (no more funny looking tanks!)
- bullets spawning at the correct canon position (no more hitting yourself with bullets!)
- canons finally being positioned correctly (no more canons wobbling around next to your vehicle!)
- smooth camera movement
- inventories with better functionality (no more sluggish drag 'n' drop!)
- inventory icons grow in size when hovering over them (more interactivity!)
- better graphics for tanks and soldiers (more eyecandy, just in time for Christmas!)
And yes, those are in fact different uniforms and skin colors here.
Uniforms will eventually also affect how your avatar in-game looks, too:
But not only visual appearance has improved.
Since libgdx makes use of your GPU, performance also made quite a leap, see the table below.
Migrating the game to the new framework also made me realize how crappy the old one actually was. If you ever get into gamedev: spare yourself a lot of work and choose your tools wisely. Means: don't drive a Fiat if you can have a Mercedes.
Despite of not being able to run CamoTactics from the period from September till December, I was able to do some important changes to the source code that were long overdue (I was just not able to test it). But I want to discuss that and a possible next release in next week's article.