While working on the ‘super weapons‘ in the game, I noticed something about the lack of smoothness in the clock-wise progress drawn over an icon. This became especially obvious when testing where I use short build times.

The reason for this is that there are 32 frames available for drawing the clockwise progress for an icon in the sidebar. When using short(er) build times, the amount of frames got chopped up. (ie, the code simply decides there is less progress to make, hence it can skip some frames).

It looked like this:

The clock-wise progress is just too rough. Using short build times its only using 3 frames.

In v 0.6.0 it will look like this:

Much better, don’t you think?

I solved this by separating the logic for ‘build progress’ and ‘frame drawing’ a bit. This means the progress can still be 3 “units of time”, and thus be completed in 3 steps, but the intermediate frames are calculated differently. This means, if you run out of money the progress will halt according to the ‘build progress’ logic.

It is the small details like this that give the game a bit more polish.

Comments are closed

Want to support? Please consider donating via Kofi.

Not sure how things will end up with Musk taking over Twitter. Any alternatives out there I should look out for? Mastadon, sure, any others?

TRANSBOT TUESDAY: DUNE II - BATTLE FOR ARRAKIS This week he's heading back to 1993 to harvest a valuable substance. A fantastic Mega Drive/Genesis real time strategy game, did you ever control the flow of The Spice? #retrogaming #Sega #MegaDrive #Amiga #Windows #PC #90s #gaming


From Dune 2 to Warcraft, Total Annihilation to C&C and Starcraft to Age of Empires, there have been some truly ground-breaking real-time strategy games! But when did the genre reach its golden era? All this & more discussed in this fun @arcadeattackUK pod!

Health wise I am not improving (instead things get worse), this severely impacts family life stuff. I hope to see a bit of improvements in the coming weeks after taking drastic measures.

Load More...