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

Version 0.6.0 – YT Demo
Want to support? Please consider donating via Kofi.

I saw Dune twice - here are my thoughts - #dune #movie #moviereview https://dune2themaker.fundynamic.com/2021/09/23/i-saw-dune-twice-here-are-my-thoughts/

Next version #d2tm #dune2 #dune #remake #indiedev #gamedev #progress https://dune2themaker.fundynamic.com/2021/09/22/next-version/

Load More...