Tuesday, October 6, 2015

Day 44: Master of Time and Fixed-Point Space

I've got good news and bad news for today. The bad news is that nothing has changed visually about my project today, so there'll be no need for a screenshot for progress.

The good news?

Underneath the surface, movement has improved immensely; the problem I had with the frame-based movement had a simple (looking) solution of time-based movement. However, time came in a decimal sense, the hundredths of a second sense. How to fix this? Fixed point math. By assigning certain bits to a register (8 bits, to be exact), we can manage up to 2^-8 of decimal points, allowing much more control over range of movement and variance by deltaTime.

Phew! Now she moves like she should. The most difficult challenge (collision) is yet to come, but I'm prepared to make it happen...

No comments:

Post a Comment